httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rede...@apache.org
Subject svn commit: r599657 - /httpd/httpd/trunk/modules/ldap/util_ldap.c
Date Fri, 30 Nov 2007 00:21:07 GMT
Author: rederpj
Date: Thu Nov 29 16:21:06 2007
New Revision: 599657

URL: http://svn.apache.org/viewvc?rev=599657&view=rev
Log:
Clear the reason pointer when the connection is cleaned. We don't
need to be leaving historical info around.

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=599657&r1=599656&r2=599657&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ldap/util_ldap.c (original)
+++ httpd/httpd/trunk/modules/ldap/util_ldap.c Thu Nov 29 16:21:06 2007
@@ -198,7 +198,10 @@
         if (ldc->binddn) {
             free((void*)ldc->binddn);
         }
-
+        /* ldc->reason is allocated from r->pool */
+        if (ldc->reason) {
+            ldc->reason = NULL;
+        }
         /* unlock this entry */
         uldap_connection_close(ldc);
 



Mime
View raw message