From c0e21a4d3eaac92387c497f75b5957d0b8a4dc8a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 21 Jan 2005 11:41:48 +0000 Subject: r4896: make sure the event context doesn't go away while waiting for event completion (This used to be commit c1063919c069b0b36dd3da6dc6853236629804e3) --- source4/libcli/resolve/bcast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/libcli/resolve') diff --git a/source4/libcli/resolve/bcast.c b/source4/libcli/resolve/bcast.c index b2d37fbfbb..d424b5303a 100644 --- a/source4/libcli/resolve/bcast.c +++ b/source4/libcli/resolve/bcast.c @@ -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; -- cgit