summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_pipe.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-08 19:37:33 +0100
committerVolker Lendecke <vl@samba.org>2009-11-08 19:43:46 +0100
commit82c35e460e00d6f9e61df2d20ea9d0ccf765636a (patch)
treed70c44840e3cc9b69911d779a0f61a29d76ffb00 /source3/rpc_server/srv_pipe.c
parentb02c46bef944712834045399c883ea14f45bde94 (diff)
downloadsamba-82c35e460e00d6f9e61df2d20ea9d0ccf765636a.tar.gz
samba-82c35e460e00d6f9e61df2d20ea9d0ccf765636a.tar.bz2
samba-82c35e460e00d6f9e61df2d20ea9d0ccf765636a.zip
Revert "s3: Do not reference ndr_table when calling rpc_srv_register"
This reverts commit 494b2aff8826947e3bd556aecb175746163da485.
Diffstat (limited to 'source3/rpc_server/srv_pipe.c')
-rw-r--r--source3/rpc_server/srv_pipe.c9
1 files changed, 2 insertions, 7 deletions
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;