git.samba.org
/
scabrero
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82aafa4
)
lib/tsocket: let tstream_bsd_connect_send() use TEVENT_FD_ERROR instead of TEVENT_FD_READ
author
Stefan Metzmacher
<metze@samba.org>
Wed, 11 Jan 2023 19:15:33 +0000
(20:15 +0100)
committer
Ralph 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
patch
|
blob
|
history
diff --git
a/lib/tsocket/tsocket_bsd.c
b/lib/tsocket/tsocket_bsd.c
index 9f3f00f107f894859850a6cc40f4e578b70b4a55..45c6a28d04b891be0c1a18b243ce2c499ddbefc2 100644
(file)
--- 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)) {