From: Stefan Metzmacher Date: Wed, 11 Jan 2023 19:04:26 +0000 (+0100) Subject: lib/async_req: let async_connect_send use TEVENT_FD_ERROR instead of TEVENT_FD_READ X-Git-Tag: talloc-2.4.2~1193 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21a18a5b52ad5dba3ff54c829d852c2a65244d7e;p=thirdparty%2Fsamba.git 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 Reviewed-by: Ralph Boehme Reviewed-by: Andrew Bartlett --- diff --git a/lib/async_req/async_sock.c b/lib/async_req/async_sock.c index ae1d3257f65..533b247c13d 100644 --- a/lib/async_req/async_sock.c +++ b/lib/async_req/async_sock.c @@ -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);