From 82c35e460e00d6f9e61df2d20ea9d0ccf765636a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 8 Nov 2009 19:37:33 +0100 Subject: Revert "s3: Do not reference ndr_table when calling rpc_srv_register" This reverts commit 494b2aff8826947e3bd556aecb175746163da485. --- source3/rpc_server/srv_pipe.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index 7e0eda1c54..17cc13edf5 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -1034,20 +1034,15 @@ static bool check_bind_req(struct pipes_struct *p, *******************************************************************/ NTSTATUS rpc_srv_register(int version, const char *clnt, const char *srv, - const char *interface, uint32_t interface_version, + const struct ndr_interface_table *iface, const struct api_struct *cmds, int size) { struct rpc_table *rpc_entry; - struct ndr_syntax_id syntax; if (!clnt || !srv || !cmds) { return NT_STATUS_INVALID_PARAMETER; } - if (!ndr_syntax_from_string(interface, interface_version, &syntax)) { - return NT_STATUS_INVALID_PARAMETER; - } - if (version != SMB_RPC_INTERFACE_VERSION) { DEBUG(0,("Can't register rpc commands!\n" "You tried to register a rpc module with SMB_RPC_INTERFACE_VERSION %d" @@ -1080,7 +1075,7 @@ NTSTATUS rpc_srv_register(int version, const char *clnt, const char *srv, ZERO_STRUCTP(rpc_entry); rpc_entry->pipe.clnt = SMB_STRDUP(clnt); rpc_entry->pipe.srv = SMB_STRDUP(srv); - rpc_entry->rpc_interface = syntax; + rpc_entry->rpc_interface = iface->syntax_id; rpc_entry->cmds = cmds; rpc_entry->n_cmds = size; -- cgit