r11823: make the socket_connect_send() context a child of the local state
authorAndrew Tridgell <tridge@samba.org>
Mon, 21 Nov 2005 09:31:36 +0000 (09:31 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:46:34 +0000 (13:46 -0500)
this fixes a valgrind error
(This used to be commit db9c0887bd24de4d81b5afa2ff096b3ba65c9720)

source4/lib/socket/connect_multi.c

index c52beaf4d0f88ccac6975ee1082af698d302f324..3948c1e2a123563718750f77abca36f29199e8fc 100644 (file)
@@ -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);