1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

tldap: Mark server down if read failed

This matches tldap_msg_sent

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
Volker Lendecke 2015-12-18 16:31:46 +01:00 committed by Günther Deschner
parent 59c1b1048f
commit 22f06c2e6f

View File

@ -589,6 +589,7 @@ static void tldap_msg_received(struct tevent_req *subreq)
received = read_ldap_recv(subreq, talloc_tos(), &inbuf, &err);
TALLOC_FREE(subreq);
if (received == -1) {
ld->server_down = true;
status = TLDAP_SERVER_DOWN;
goto fail;
}