]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib/async_req: let async_connect_send use TEVENT_FD_ERROR instead of TEVENT_FD_READ
authorStefan Metzmacher <metze@samba.org>
Wed, 11 Jan 2023 19:04:26 +0000 (20:04 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 24 Oct 2023 09:36:37 +0000 (09:36 +0000)
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>
lib/async_req/async_sock.c

index ae1d3257f65adf38280215b9eb31fc9fbff9654b..533b247c13d386a45fc57738aa32fab574c788ce 100644 (file)
@@ -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);