Commit 95715f01 authored by Bradley Nicholes's avatar Bradley Nicholes
Browse files

If the search fails due to a bad connection, make sure that we unbind the...

If the search fails due to a bad connection, make sure that we unbind the connection so that it will be recreated the next time it is used.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@155713 13f79535-47bb-0310-9956-ffa450edef68
parent d5ae3998
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1118,9 +1118,9 @@ start_over:
    if ((result = ldap_search_ext_s(ldc->ldap,
				    (char *)basedn, scope,
                                    (char *)filter, attrs, 0, 
				    NULL, NULL,
                                    NULL, -1, &res)) == LDAP_SERVER_DOWN) {
				    NULL, NULL, NULL, -1, &res)) == LDAP_SERVER_DOWN) {
        ldc->reason = "ldap_search_ext_s() for user failed with server down";
        util_ldap_connection_unbind(ldc);
        goto start_over;
    }