]> granicus.if.org Git - apache/commitdiff
Clear the reason pointer when the connection is cleaned. We don't
authorPaul J. Reder <rederpj@apache.org>
Fri, 30 Nov 2007 00:21:06 +0000 (00:21 +0000)
committerPaul J. Reder <rederpj@apache.org>
Fri, 30 Nov 2007 00:21:06 +0000 (00:21 +0000)
need to be leaving historical info around.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@599657 13f79535-47bb-0310-9956-ffa450edef68

modules/ldap/util_ldap.c

index 74d746d02743350d2202df2bc379be7f2953453d..c16aba33c01bb208726abd37eee39a44006a9352 100644 (file)
@@ -198,7 +198,10 @@ static apr_status_t uldap_connection_cleanup(void *param)
         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);