diff options
author | Paul J. Reder <rederpj@apache.org> | 2007-11-17 00:14:56 +0100 |
---|---|---|
committer | Paul J. Reder <rederpj@apache.org> | 2007-11-17 00:14:56 +0100 |
commit | 7cd3e665076db5efdc9f31559da4d54f3e04ba01 (patch) | |
tree | 85f341a6e5ad52617f8929bc36b314ce9bbea98c /modules/ldap/util_ldap_cache.c | |
parent | r595672 was incomplete. We need to be sure we reject multiple-encodings. (diff) | |
download | apache2-7cd3e665076db5efdc9f31559da4d54f3e04ba01.tar.xz apache2-7cd3e665076db5efdc9f31559da4d54f3e04ba01.zip |
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
Diffstat (limited to 'modules/ldap/util_ldap_cache.c')
-rw-r--r-- | modules/ldap/util_ldap_cache.c | 8 |
1 files changed, 7 insertions, 1 deletions
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 { |