diff options
author | Volker Lendecke <vl@samba.org> | 2008-09-29 03:14:20 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-09-29 03:16:02 +0200 |
commit | a9a59f5f3d7f82a8065424310d3b32d796a43e75 (patch) | |
tree | e7f4425f1c51e250b062f51ddcdcf3ca35ff7590 | |
parent | 3358a139d2dc77eb4c842d41722b1acc24bd2cb2 (diff) | |
download | samba-a9a59f5f3d7f82a8065424310d3b32d796a43e75.tar.gz samba-a9a59f5f3d7f82a8065424310d3b32d796a43e75.tar.bz2 samba-a9a59f5f3d7f82a8065424310d3b32d796a43e75.zip |
Fix async_connect
-rw-r--r-- | source3/lib/async_sock.c | 3 |
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; |