summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-26 23:38:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:19 -0500
commit5390daefb655d275beab33ace3fe95366eaed207 (patch)
tree0f6778821e2ab4d3dfc993de2c332f5474347601 /source4
parent8d811df12b7e535e6e44bac088a4724a8478c4b1 (diff)
downloadsamba-5390daefb655d275beab33ace3fe95366eaed207.tar.gz
samba-5390daefb655d275beab33ace3fe95366eaed207.tar.bz2
samba-5390daefb655d275beab33ace3fe95366eaed207.zip
r2668: steal the cli pointer into the pipe context so a single free destroys the cli context too
(This used to be commit 417d0c0ba182aab3a3a23db76ff7ac7cbc663cb6)
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/rpc/dcerpc_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c
index be83d6bed1..71fe2c63e1 100644
--- a/source4/librpc/rpc/dcerpc_util.c
+++ b/source4/librpc/rpc/dcerpc_util.c
@@ -487,7 +487,8 @@ static NTSTATUS dcerpc_pipe_connect_ncacn_np(struct dcerpc_pipe **p,
/* this ensures that the reference count is decremented so
a pipe close will really close the link */
talloc_free(cli->tree);
-
+ talloc_steal(*p, cli);
+
(*p)->flags = binding->flags;
/* remember the binding string for possible secondary connections */