summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-09-29 03:14:20 +0200
committerVolker Lendecke <vl@samba.org>2008-09-29 03:16:02 +0200
commita9a59f5f3d7f82a8065424310d3b32d796a43e75 (patch)
treee7f4425f1c51e250b062f51ddcdcf3ca35ff7590 /source3/lib
parent3358a139d2dc77eb4c842d41722b1acc24bd2cb2 (diff)
downloadsamba-a9a59f5f3d7f82a8065424310d3b32d796a43e75.tar.gz
samba-a9a59f5f3d7f82a8065424310d3b32d796a43e75.tar.bz2
samba-a9a59f5f3d7f82a8065424310d3b32d796a43e75.zip
Fix async_connect
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/async_sock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/async_sock.c b/source3/lib/async_sock.c
index 1a4c27ba20..ffba6de832 100644
--- a/source3/lib/async_sock.c
+++ b/source3/lib/async_sock.c
@@ -658,12 +658,13 @@ struct async_req *async_connect(TALLOC_CTX *mem_ctx, struct event_context *ev,
state->fde = event_add_fd(ev, state, fd,
EVENT_FD_READ | EVENT_FD_WRITE,
- async_connect_callback, state);
+ async_connect_callback, result);
if (state->fde == NULL) {
sys_fcntl_long(fd, F_SETFL, p->old_sockflags);
TALLOC_FREE(result);
return NULL;
}
+ result->private_data = state;
state->param.param_connect.fd = fd;
state->param.param_connect.address = address;