summaryrefslogtreecommitdiffstats
path: root/source4/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-09-19 17:26:37 +0200
committerStefan Metzmacher <metze@samba.org>2014-01-07 08:37:43 +0100
commite6474ba2c23aa14804b823be2abd8c9c691099ba (patch)
treed7674d634eb7638f0eceb48c8ceb60a2c68971b5 /source4/librpc
parentd230f73e97f6dc625e1111a676d1504ac00fb28f (diff)
downloadsamba-e6474ba2c23aa14804b823be2abd8c9c691099ba.tar.gz
samba-e6474ba2c23aa14804b823be2abd8c9c691099ba.tar.xz
samba-e6474ba2c23aa14804b823be2abd8c9c691099ba.zip
s4:librpc: keep smbcli_tree/smb2_tree as talloc child of dcecli_connection
This will avoid the need of talloc_reference later. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/rpc/dcerpc_connect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/librpc/rpc/dcerpc_connect.c b/source4/librpc/rpc/dcerpc_connect.c
index eb53a115e3..594e7f7432 100644
--- a/source4/librpc/rpc/dcerpc_connect.c
+++ b/source4/librpc/rpc/dcerpc_connect.c
@@ -71,7 +71,7 @@ static void continue_smb_connect(struct composite_context *ctx)
struct pipe_np_smb_state);
/* receive result of smb connect request */
- c->status = smb_composite_connect_recv(ctx, c);
+ c->status = smb_composite_connect_recv(ctx, s->io.pipe->conn);
if (!composite_is_ok(c)) return;
/* prepare named pipe open parameters */
@@ -196,7 +196,7 @@ static void continue_smb2_connect(struct tevent_req *subreq)
struct pipe_np_smb2_state);
/* receive result of smb2 connect request */
- c->status = smb2_connect_recv(subreq, c, &s->tree);
+ c->status = smb2_connect_recv(subreq, s->io.pipe->conn, &s->tree);
TALLOC_FREE(subreq);
if (!composite_is_ok(c)) return;