You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by rj...@apache.org on 2011/05/10 23:34:08 UTC

svn commit: r1101655 - /apr/apr-util/branches/1.5.x/ldap/apr_ldap_rebind.c

Author: rjung
Date: Tue May 10 21:34:08 2011
New Revision: 1101655

URL: http://svn.apache.org/viewvc?rev=1101655&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.5.x/ldap/apr_ldap_rebind.c

Modified: apr/apr-util/branches/1.5.x/ldap/apr_ldap_rebind.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.5.x/ldap/apr_ldap_rebind.c?rev=1101655&r1=1101654&r2=1101655&view=diff
==============================================================================
--- apr/apr-util/branches/1.5.x/ldap/apr_ldap_rebind.c (original)
+++ apr/apr-util/branches/1.5.x/ldap/apr_ldap_rebind.c Tue May 10 21:34:08 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) {