r4896: make sure the event context doesn't go away while waiting for event completion
authorAndrew Tridgell <tridge@samba.org>
Fri, 21 Jan 2005 11:41:48 +0000 (11:41 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:09:04 +0000 (13:09 -0500)
(This used to be commit c1063919c069b0b36dd3da6dc6853236629804e3)

source4/libcli/resolve/bcast.c

index b2d37fbfbbea67e11c6b636c8f0b6714b037cdb4..d424b5303aed84736f6e7e662a3c7484b83ce489 100644 (file)
@@ -122,7 +122,7 @@ struct smbcli_composite *resolve_name_bcast_send(struct nbt_name *name,
 
        c->state = SMBCLI_REQUEST_SEND;
        c->private = state;
-       c->event_ctx = state->nbtsock->event_ctx;
+       c->event_ctx = talloc_reference(c, state->nbtsock->event_ctx);
 
        return c;