lib/tsocket: let tstream_bsd_connect_send() use TEVENT_FD_ERROR instead of TEVENT_FD_READ
authorStefan Metzmacher <metze@samba.org>
Wed, 11 Jan 2023 19:15:33 +0000 (20:15 +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/tsocket/tsocket_bsd.c

index 9f3f00f107f894859850a6cc40f4e578b70b4a55..45c6a28d04b891be0c1a18b243ce2c499ddbefc2 100644 (file)
@@ -2588,7 +2588,7 @@ static struct tevent_req *tstream_bsd_connect_send(TALLOC_CTX *mem_ctx,
         */
        state->fde = tevent_add_fd(ev, state,
                                   state->fd,
-                                  TEVENT_FD_READ | TEVENT_FD_WRITE,
+                                  TEVENT_FD_ERROR | TEVENT_FD_WRITE,
                                   tstream_bsd_connect_fde_handler,
                                   req);
        if (tevent_req_nomem(state->fde, req)) {