mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +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:
parent
82b2a379e8
commit
8e8f2fa9c7
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user