From 024b3609eaa024a67c52f56529c700a7cc186bd4 Mon Sep 17 00:00:00 2001 From: clement Date: Thu, 4 Nov 2004 11:53:41 +0000 Subject: - Fix previous patch :-) Huge pointy hat to: me Noticed by: Meno Abels --- .../files/patch-modules:experimental:util_ldap_cache_mgr.c | 14 +++++++------- .../files/patch-modules:experimental:util_ldap_cache_mgr.c | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'www') diff --git a/www/apache2/files/patch-modules:experimental:util_ldap_cache_mgr.c b/www/apache2/files/patch-modules:experimental:util_ldap_cache_mgr.c index 8a8749ebbc0f..ca5352107d51 100644 --- a/www/apache2/files/patch-modules:experimental:util_ldap_cache_mgr.c +++ b/www/apache2/files/patch-modules:experimental:util_ldap_cache_mgr.c @@ -1,20 +1,20 @@ ---- modules/experimental/util_ldap_cache_mgr.c.orig Thu Sep 23 18:55:37 2004 -+++ modules/experimental/util_ldap_cache_mgr.c Sat Oct 30 21:37:48 2004 +--- modules/experimental/util_ldap_cache_mgr.c Thu Sep 23 18:55:37 2004 ++++ modules/experimental/util_ldap_cache_mgr.c Wed Nov 3 06:17:59 2004 @@ -173,7 +173,7 @@ void util_ald_cache_purge(util_ald_cache_t *cache) { unsigned long i; - util_cache_node_t *p, *q; -+ util_cache_node_t *p, *q, *pp; ++ util_cache_node_t *p, *q, **pp; apr_time_t t; - + if (!cache) @@ -184,7 +184,8 @@ cache->numpurges++; - + for (i=0; i < cache->size; ++i) { - p = cache->nodes[i]; -+ p = cache->nodes + i; ++ pp = cache->nodes + i; + p = *pp; while (p != NULL) { if (p->add_time < cache->marktime) { @@ -34,7 +34,7 @@ + p = *pp; } } } - + @@ -686,7 +688,9 @@ default: break; diff --git a/www/apache20/files/patch-modules:experimental:util_ldap_cache_mgr.c b/www/apache20/files/patch-modules:experimental:util_ldap_cache_mgr.c index 8a8749ebbc0f..ca5352107d51 100644 --- a/www/apache20/files/patch-modules:experimental:util_ldap_cache_mgr.c +++ b/www/apache20/files/patch-modules:experimental:util_ldap_cache_mgr.c @@ -1,20 +1,20 @@ ---- modules/experimental/util_ldap_cache_mgr.c.orig Thu Sep 23 18:55:37 2004 -+++ modules/experimental/util_ldap_cache_mgr.c Sat Oct 30 21:37:48 2004 +--- modules/experimental/util_ldap_cache_mgr.c Thu Sep 23 18:55:37 2004 ++++ modules/experimental/util_ldap_cache_mgr.c Wed Nov 3 06:17:59 2004 @@ -173,7 +173,7 @@ void util_ald_cache_purge(util_ald_cache_t *cache) { unsigned long i; - util_cache_node_t *p, *q; -+ util_cache_node_t *p, *q, *pp; ++ util_cache_node_t *p, *q, **pp; apr_time_t t; - + if (!cache) @@ -184,7 +184,8 @@ cache->numpurges++; - + for (i=0; i < cache->size; ++i) { - p = cache->nodes[i]; -+ p = cache->nodes + i; ++ pp = cache->nodes + i; + p = *pp; while (p != NULL) { if (p->add_time < cache->marktime) { @@ -34,7 +34,7 @@ + p = *pp; } } } - + @@ -686,7 +688,9 @@ default: break; -- cgit