From 7cd3e665076db5efdc9f31559da4d54f3e04ba01 Mon Sep 17 00:00:00 2001 From: "Paul J. Reder" Date: Fri, 16 Nov 2007 23:14:56 +0000 Subject: [PATCH] A quick fix to avoid potential memory issues. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@595866 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ldap/util_ldap_cache.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/ldap/util_ldap_cache.c b/modules/ldap/util_ldap_cache.c index 2217b20b7f..972e6ce64b 100644 --- a/modules/ldap/util_ldap_cache.c +++ b/modules/ldap/util_ldap_cache.c @@ -266,7 +266,13 @@ void *util_ldap_compare_node_copy(util_ald_cache_t *cache, void *c) } 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 { -- 2.50.1