In api_pipe_bind_req(), check for the iface id, not the pipe name
[samba.git] / source3 / rpc_server / srv_svcctl.c
index e3ff2cc8a05081c6282b267f1857c9c08be96814..483fb8e1e9b65b096d5464ee1f92e665fba70e16 100644 (file)
@@ -266,6 +266,8 @@ void svcctl2_get_pipe_fns( struct api_struct **fns, int *n_fns )
 NTSTATUS rpc_svcctl2_init(void)
 {
        return rpc_pipe_register_commands(SMB_RPC_INTERFACE_VERSION,
-                                         "svcctl", "ntsvcs", api_svcctl_cmds,
+                                         "svcctl", "ntsvcs",
+                                         &ndr_table_svcctl.syntax_id,
+                                         api_svcctl_cmds,
                                          sizeof(api_svcctl_cmds) / sizeof(struct api_struct));
 }