diff options
author | Volker Lendecke <vl@samba.org> | 2015-12-18 16:31:46 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2016-02-03 15:04:11 +0100 |
commit | 22f06c2e6f8659f13d9497d7480c988c62bf15b7 (patch) | |
tree | 7fc0da8c63208366a2a7dd0ce2de11b912211de3 /source3/lib/tldap.c | |
parent | 59c1b1048f973197970d1ba6c915229038a30cd0 (diff) | |
download | samba-22f06c2e6f8659f13d9497d7480c988c62bf15b7.tar.gz |
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>
Diffstat (limited to 'source3/lib/tldap.c')
-rw-r--r-- | source3/lib/tldap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c index d8b4f241bac..4c2319c8bea 100644 --- a/source3/lib/tldap.c +++ b/source3/lib/tldap.c @@ -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; } |