httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rede...@apache.org
Subject svn commit: r595866 - /httpd/httpd/trunk/modules/ldap/util_ldap_cache.c
Date Fri, 16 Nov 2007 23:15:04 GMT
Author: rederpj
Date: Fri Nov 16 15:14:56 2007
New Revision: 595866

URL: http://svn.apache.org/viewvc?rev=595866&view=rev
Log:
A quick fix to avoid potential memory issues.

Modified:
    httpd/httpd/trunk/modules/ldap/util_ldap_cache.c

Modified: httpd/httpd/trunk/modules/ldap/util_ldap_cache.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ldap/util_ldap_cache.c?rev=595866&r1=595865&r2=595866&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ldap/util_ldap_cache.c (original)
+++ httpd/httpd/trunk/modules/ldap/util_ldap_cache.c Fri Nov 16 15:14:56 2007
@@ -266,7 +266,13 @@
         }
         node->lastcompare = n->lastcompare;
         node->result = n->result;
-        node->sgl_processed = n->sgl_processed;
+        if (n->subgroupList && !node->subgroupList ) {
+  	    /* original entry had an SGL, no shared memory left to copy it */
+  	    node->sgl_processed = 0;
+  	}
+  	else {
+            node->sgl_processed = n->sgl_processed;
+        }
         return node;
     }
     else {



Mime
View raw message