summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-11-21 09:31:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:34 -0500
commit93e83f4086384908107aea16d6df4819b4970f67 (patch)
treed7203c07c44a4ee1f98f15166233a134c216b09f /source4/lib
parenteeb093f6a96221cc4c79cd311fac0d1326f2a0c9 (diff)
downloadsamba-93e83f4086384908107aea16d6df4819b4970f67.tar.gz
samba-93e83f4086384908107aea16d6df4819b4970f67.tar.bz2
samba-93e83f4086384908107aea16d6df4819b4970f67.zip
r11823: make the socket_connect_send() context a child of the local state
this fixes a valgrind error (This used to be commit db9c0887bd24de4d81b5afa2ff096b3ba65c9720)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/socket/connect_multi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/socket/connect_multi.c b/source4/lib/socket/connect_multi.c
index c52beaf4d0..3948c1e2a1 100644
--- a/source4/lib/socket/connect_multi.c
+++ b/source4/lib/socket/connect_multi.c
@@ -155,6 +155,7 @@ static void connect_multi_next_socket(struct composite_context *result)
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);