You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by bn...@apache.org on 2005/03/01 00:25:29 UTC
svn commit: r155713 - httpd/httpd/trunk/modules/ldap/util_ldap.c
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;
}