From: Bradley Nicholes Date: Wed, 9 Apr 2008 22:49:31 +0000 (+0000) Subject: Move the initialization of rebind to the post_config handler so that it is done durin... X-Git-Tag: 2.3.0~735 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49c238ec40844610e48ff0402482c2acaf50dfdd;p=apache 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@646582 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ldap/util_ldap.c b/modules/ldap/util_ldap.c index 5d41aa6f5a..72170d8caa 100644 --- a/modules/ldap/util_ldap.c +++ b/modules/ldap/util_ldap.c @@ -2405,9 +2405,6 @@ static void *util_ldap_create_config(apr_pool_t *p, server_rec *s) st->connectionTimeout = 10; st->verify_svr_cert = 1; - /* Initialize the rebind callback's cross reference list. */ - apr_ldap_rebind_init (p); - return st; } @@ -2615,6 +2612,9 @@ static int util_ldap_post_config(apr_pool_t *p, apr_pool_t *plog, result_err ? result_err->reason : ""); } + /* Initialize the rebind callback's cross reference list. */ + apr_ldap_rebind_init (p); + return(OK); }