]> git.ipfire.org Git - thirdparty/samba.git/commit
lib/tsocket: remember the first error as tstream_bsd->error
authorStefan Metzmacher <metze@samba.org>
Thu, 13 Oct 2022 14:23:03 +0000 (16:23 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 19 Oct 2022 16:14:36 +0000 (16:14 +0000)
commit4c7e2b9b60de5d02bb3f69effe7eddbf466a6155
treec24b647bdf8652a1fc8df0f4d8ecb5b949f39366
parent29a65da63d730ecead1e7d4a81a76dd1c8c179ea
lib/tsocket: remember the first error as tstream_bsd->error

If we found that the connection is broken, there's no point
in trying to use it anymore, so just return the first error we detected.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15202

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
lib/tsocket/tsocket_bsd.c