summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-05-30 11:02:47 +0200
committerAndreas Schneider <asn@samba.org>2011-06-01 12:02:15 +0200
commit58485afd91dde993cd7f14ca0182f661be4b719c (patch)
treec865d8b81f096e529d59dab962e646273bfe790e /source3
parentc8ec695cb3646c9f38a8a54171a2bdac2b1fd5a5 (diff)
downloadsamba-58485afd91dde993cd7f14ca0182f661be4b719c.tar.gz
samba-58485afd91dde993cd7f14ca0182f661be4b719c.tar.bz2
samba-58485afd91dde993cd7f14ca0182f661be4b719c.zip
s3-rpc_server: Use the context syntax id in api_pipe_request().
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_pipe.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c
index 2f1709da8b..80267e0d71 100644
--- a/source3/rpc_server/srv_pipe.c
+++ b/source3/rpc_server/srv_pipe.c
@@ -1532,9 +1532,6 @@ static bool api_pipe_request(struct pipes_struct *p,
changed_user = True;
}
- DEBUG(5, ("Requested \\PIPE\\%s\n",
- get_pipe_name_from_syntax(talloc_tos(), &p->syntax)));
-
/* get the set of RPC functions for this context */
pipe_fns = find_pipe_fns_by_context(p->contexts,
@@ -1542,15 +1539,18 @@ static bool api_pipe_request(struct pipes_struct *p,
if ( pipe_fns ) {
TALLOC_CTX *frame = talloc_stackframe();
+
+ DEBUG(5, ("Requested %s rpc service\n",
+ get_pipe_name_from_syntax(talloc_tos(), &pipe_fns->syntax)));
+
ret = api_rpcTNP(p, pkt, pipe_fns->cmds, pipe_fns->n_cmds);
+
TALLOC_FREE(frame);
}
else {
DEBUG(0, ("No rpc function table associated with context "
- "[%d] on pipe [%s]\n",
- pkt->u.request.context_id,
- get_pipe_name_from_syntax(talloc_tos(),
- &p->syntax)));
+ "[%d]\n",
+ pkt->u.request.context_id));
}
if (changed_user) {