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; }