1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

s4:dns_server: make use of 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:40:13 +01:00 committed by Ralph Boehme
parent e897ccd9c8
commit 341e800dfe

View File

@ -491,6 +491,8 @@ static void dns_tcp_accept(struct stream_connection *conn)
"dns_tcp_accept: out of memory");
return;
}
/* as server we want to fail early */
tstream_bsd_fail_readv_first_error(dns_conn->tstream, true);
dns_conn->conn = conn;
dns_conn->dns_socket = dns_socket;