From: Volker Lendecke Date: Wed, 16 Jul 2008 19:50:25 +0000 (+0200) Subject: Add the interface ID to the rpc_pipe_register_commands call in s3 srv code X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=efe249928312f730ee580e72b9c640ef88b0ed5b;p=thirdparty%2Fsamba.git Add the interface ID to the rpc_pipe_register_commands call in s3 srv code --- diff --git a/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm b/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm index 4af9da0f52f..b21d3f4bbc2 100644 --- a/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm +++ b/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm @@ -235,7 +235,7 @@ sub ParseInterface($) pidl_hdr "NTSTATUS rpc_$if->{NAME}_init(void);"; pidl "NTSTATUS rpc_$if->{NAME}_init(void)"; pidl "{"; - pidl "\treturn rpc_pipe_register_commands(SMB_RPC_INTERFACE_VERSION, \"$if->{NAME}\", \"$if->{NAME}\", api_$if->{NAME}_cmds, sizeof(api_$if->{NAME}_cmds) / sizeof(struct api_struct));"; + pidl "\treturn rpc_pipe_register_commands(SMB_RPC_INTERFACE_VERSION, \"$if->{NAME}\", \"$if->{NAME}\", \&ndr_table_$if->{NAME}.syntax_id, api_$if->{NAME}_cmds, sizeof(api_$if->{NAME}_cmds) / sizeof(struct api_struct));"; pidl "}"; pidl_hdr "#endif /* __SRV_$uif\__ */";