From 22e3a542f39ce3f88c22cf871ebc3228acfc19ba Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 11 Jan 2023 20:15:33 +0100 Subject: [PATCH] lib/tsocket: let tstream_bsd_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 --- lib/tsocket/tsocket_bsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tsocket/tsocket_bsd.c b/lib/tsocket/tsocket_bsd.c index 9f3f00f107f..45c6a28d04b 100644 --- a/lib/tsocket/tsocket_bsd.c +++ b/lib/tsocket/tsocket_bsd.c @@ -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)) { -- 2.47.3