svn commit: samba r11823 - in branches/SAMBA_4_0/source/lib/socket: .

tridge at samba.org tridge at samba.org
Mon Nov 21 09:31:37 GMT 2005


Author: tridge
Date: 2005-11-21 09:31:36 +0000 (Mon, 21 Nov 2005)
New Revision: 11823

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11823

Log:

make the socket_connect_send() context a child of the local state

this fixes a valgrind error

Modified:
   branches/SAMBA_4_0/source/lib/socket/connect_multi.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/socket/connect_multi.c
===================================================================
--- branches/SAMBA_4_0/source/lib/socket/connect_multi.c	2005-11-21 09:20:32 UTC (rev 11822)
+++ branches/SAMBA_4_0/source/lib/socket/connect_multi.c	2005-11-21 09:31:36 UTC (rev 11823)
@@ -155,6 +155,7 @@
 	creq = socket_connect_send(state->sock, NULL, 0, 
 				   multi->server_address, state->port, 0, result->event_ctx);
 	if (composite_nomem(creq, result)) return;
+	talloc_steal(state, creq);
 
 	composite_continue(result, creq, continue_one, state);
 



More information about the samba-cvs mailing list