httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject svn commit: r155713 - httpd/httpd/trunk/modules/ldap/util_ldap.c
Date Mon, 28 Feb 2005 23:25:29 GMT
Author: bnicholes
Date: Mon Feb 28 15:25:26 2005
New Revision: 155713

URL: http://svn.apache.org/viewcvs?view=rev&rev=155713
Log:
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.

Modified:
    httpd/httpd/trunk/modules/ldap/util_ldap.c

Modified: httpd/httpd/trunk/modules/ldap/util_ldap.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/ldap/util_ldap.c?view=diff&r1=155712&r2=155713
==============================================================================
--- httpd/httpd/trunk/modules/ldap/util_ldap.c (original)
+++ httpd/httpd/trunk/modules/ldap/util_ldap.c Mon Feb 28 15:25:26 2005
@@ -1118,9 +1118,9 @@
     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;
     }
 



Mime
View raw message