mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
lib/async_req: let async_connect_send use TEVENT_FD_ERROR instead of TEVENT_FD_READ
This mostly cosmetic, but now that we have TEVENT_FD_ERROR we should use it. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
66b2563722
commit
21a18a5b52
@ -151,7 +151,8 @@ struct tevent_req *async_connect_send(
|
||||
* use TEVENT_FD_READ in addition until we have
|
||||
* TEVENT_FD_ERROR.
|
||||
*/
|
||||
state->fde = tevent_add_fd(ev, state, fd, TEVENT_FD_READ|TEVENT_FD_WRITE,
|
||||
state->fde = tevent_add_fd(ev, state, fd,
|
||||
TEVENT_FD_ERROR|TEVENT_FD_WRITE,
|
||||
async_connect_connected, req);
|
||||
if (state->fde == NULL) {
|
||||
tevent_req_error(req, ENOMEM);
|
||||
|
Loading…
Reference in New Issue
Block a user