X-Git-Url: http://git.samba.org/?p=samba.git;a=blobdiff_plain;f=source4%2Flibrpc%2Ftables.pl;h=9f30674de8b0b5a2602f4117c1d8632ed4e328d2;hp=462ef19e0823f65dd6bcebba7eca85572a5c2755;hb=2cb372f7a457d16bef791eb9670f61555510fe87;hpb=046a54f96394fe49226ab2b48fdeb7c07937ea57 diff --git a/source4/librpc/tables.pl b/source4/librpc/tables.pl index 462ef19e082..9f30674de8b 100644 --- a/source4/librpc/tables.pl +++ b/source4/librpc/tables.pl @@ -55,7 +55,8 @@ sub process_file($) while (my $line = ) { if ($line =~ /extern const struct dcerpc_interface_table (\w+);/) { $found = 1; - $init_fns.="\tlibrpc_register_interface(&$1);\n"; + $init_fns.="\tstatus = librpc_register_interface(&$1);\n"; + $init_fns.="\tif (NT_STATUS_IS_ERR(status)) return status;\n\n"; } } @@ -81,12 +82,9 @@ process_file($_) foreach (@ARGV); print TABLEC <