git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
341e800
)
s3:libsmb: the unexpected handler use tstream_bsd_fail_readv_first_error(true)
author
Stefan Metzmacher
<metze@samba.org>
Thu, 12 Jan 2023 09:41:04 +0000
(10:41 +0100)
committer
Ralph Boehme
<slow@samba.org>
Tue, 24 Oct 2023 09:36:37 +0000
(09:36 +0000)
This avoids doing useless work in case the client connection
is already broken.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/libsmb/unexpected.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/unexpected.c
b/source3/libsmb/unexpected.c
index ced46969b8868e78daf69fcf5ffdb585f375aa88..b81d3794dd847ba5bb44cb2ad55b6e20fe9d7d01 100644
(file)
--- a/
source3/libsmb/unexpected.c
+++ b/
source3/libsmb/unexpected.c
@@
-174,6
+174,8
@@
static void nb_packet_server_listener(struct tevent_context *ev,
close(sock);
return;
}
+ /* as server we want to fail early */
+ tstream_bsd_fail_readv_first_error(client->sock, true);
client->server = server;