From 93e83f4086384908107aea16d6df4819b4970f67 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 21 Nov 2005 09:31:36 +0000 Subject: r11823: make the socket_connect_send() context a child of the local state this fixes a valgrind error (This used to be commit db9c0887bd24de4d81b5afa2ff096b3ba65c9720) --- source4/lib/socket/connect_multi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/lib/socket/connect_multi.c') 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); -- cgit