mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4:kdc: 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:
parent
71e8727bdc
commit
3a47a276fd
@ -496,6 +496,8 @@ static void kdc_tcp_accept(struct stream_connection *conn)
|
||||
"kdc_tcp_accept: out of memory");
|
||||
return;
|
||||
}
|
||||
/* as server we want to fail early */
|
||||
tstream_bsd_fail_readv_first_error(kdc_conn->tstream, true);
|
||||
|
||||
kdc_conn->conn = conn;
|
||||
kdc_conn->kdc_socket = kdc_socket;
|
||||
|
Loading…
Reference in New Issue
Block a user