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:
parent
59c1b1048f
commit
22f06c2e6f
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user