mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
Fix async_connect
This commit is contained in:
parent
3358a139d2
commit
a9a59f5f3d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user