From: Stefan Metzmacher Date: Wed, 11 Jan 2023 19:15:33 +0000 (+0100) Subject: lib/tsocket: let tstream_bsd_connect_send() use TEVENT_FD_ERROR instead of TEVENT_FD_READ X-Git-Tag: talloc-2.4.2~1191 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=22e3a542f39ce3f88c22cf871ebc3228acfc19ba;p=thirdparty%2Fsamba.git 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 --- 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)) {