apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r1101656 - /apr/apr-util/branches/1.4.x/ldap/apr_ldap_rebind.c
Date Tue, 10 May 2011 21:34:24 GMT
Author: rjung
Date: Tue May 10 21:34:23 2011
New Revision: 1101656

URL: http://svn.apache.org/viewvc?rev=1101656&view=rev
Log:
apr_ldap: Fix crash because of NULL cleanup registered by
apr_ldap_rebind_init().

Backport of r1082171 from trunk.

Modified:
    apr/apr-util/branches/1.4.x/ldap/apr_ldap_rebind.c

Modified: apr/apr-util/branches/1.4.x/ldap/apr_ldap_rebind.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.4.x/ldap/apr_ldap_rebind.c?rev=1101656&r1=1101655&r2=1101656&view=diff
==============================================================================
--- apr/apr-util/branches/1.4.x/ldap/apr_ldap_rebind.c (original)
+++ apr/apr-util/branches/1.4.x/ldap/apr_ldap_rebind.c Tue May 10 21:34:23 2011
@@ -82,7 +82,8 @@ APU_DECLARE_LDAP(apr_status_t) apr_ldap_
 #endif
 
     /* run after apr_thread_mutex_create cleanup */
-    apr_pool_cleanup_register(pool, &apr_ldap_xref_lock, apr_ldap_pool_cleanup_set_null,
NULL);
+    apr_pool_cleanup_register(pool, &apr_ldap_xref_lock, apr_ldap_pool_cleanup_set_null,
+                              apr_pool_cleanup_null);
 
 #if APR_HAS_THREADS
     if (apr_ldap_xref_lock == NULL) {



Mime
View raw message