Add the interface ID to the rpc_pipe_register_commands call in s3 srv code
authorVolker Lendecke <vl@samba.org>
Wed, 16 Jul 2008 19:50:25 +0000 (21:50 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 16 Jul 2008 20:22:38 +0000 (22:22 +0200)
source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm

index 4af9da0f52fc160938a7254e7dd114b7f8a20d2c..b21d3f4bbc293df301ca72f9bdbc3ecddf77f0ab 100644 (file)
@@ -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\__ */";