1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-21 09:34:19 +03:00

libcli/named_pipe_auth: let tstream_npa_existing_socket use tstream_bsd_fail_readv_first_error(true)

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>
This commit is contained in:
Stefan Metzmacher 2023-01-12 10:44:25 +01:00 committed by Ralph Boehme
parent 82b2a379e8
commit 8e8f2fa9c7

View File

@ -1008,6 +1008,8 @@ int _tstream_npa_existing_socket(TALLOC_CTX *mem_ctx,
if (ret == -1) {
return -1;
}
/* as server we want to fail early */
tstream_bsd_fail_readv_first_error(transport, true);
return _tstream_npa_existing_stream(
mem_ctx, &transport, file_type, _stream, location);
}