httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject svn commit: r646582 - /httpd/httpd/trunk/modules/ldap/util_ldap.c
Date Wed, 09 Apr 2008 22:49:34 GMT
Author: bnicholes
Date: Wed Apr  9 15:49:31 2008
New Revision: 646582

URL: http://svn.apache.org/viewvc?rev=646582&view=rev
Log:
Move the initialization of rebind to the post_config handler so that it is done during the
actual module load stage rather than the preload stage.  If done during the preload stage,
the pool passed into the initialization function will be cleared and all allocations will
be freed. 

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

Modified: httpd/httpd/trunk/modules/ldap/util_ldap.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ldap/util_ldap.c?rev=646582&r1=646581&r2=646582&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ldap/util_ldap.c (original)
+++ httpd/httpd/trunk/modules/ldap/util_ldap.c Wed Apr  9 15:49:31 2008
@@ -2405,9 +2405,6 @@
     st->connectionTimeout = 10;
     st->verify_svr_cert = 1;
 
-    /* Initialize the rebind callback's cross reference list. */
-    apr_ldap_rebind_init (p);
-
     return st;
 }
 
@@ -2614,6 +2611,9 @@
                      result_err ? ": " : "",
                      result_err ? result_err->reason : "");
     }
+
+    /* Initialize the rebind callback's cross reference list. */
+    apr_ldap_rebind_init (p);
 
     return(OK);
 }



Mime
View raw message