svn commit: samba r2668 - in branches/SAMBA_4_0/source/librpc/rpc: .

tridge at samba.org tridge at samba.org
Sun Sep 26 23:38:14 GMT 2004


Author: tridge
Date: 2004-09-26 23:38:14 +0000 (Sun, 26 Sep 2004)
New Revision: 2668

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/librpc/rpc&rev=2668&nolog=1

Log:
steal the cli pointer into the pipe context so a single free destroys the cli context too


Modified:
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c	2004-09-26 22:19:48 UTC (rev 2667)
+++ branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c	2004-09-26 23:38:14 UTC (rev 2668)
@@ -487,7 +487,8 @@
 	/* 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 */



More information about the samba-cvs mailing list