statistics display.
PR: 29216
Obtained from:
Submitted by: Graham Leggett
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105373
13f79535-47bb-0310-9956-
ffa450edef68
[Remove entries to the current 2.0 section below, when backported]
+ *) mod_ldap: prevent the possiblity of an infinite loop in the LDAP
+ statistics display. PR 29216 [Graham Leggett]
+
*) mod_disk_cache: Do not store hop-by-hop headers. [Justin Erenkrantz]
*) mod_cache: Try to correctly follow RFC 2616 13.3 on validating stale
for (i=0; i < cache->size; ++i) {
if (cache->nodes[i] != NULL) {
nchains++;
- for (n = cache->nodes[i]; n != NULL; n = n->next)
- totchainlen++;
+ for (n = cache->nodes[i];
+ n != NULL && n != n->next;
+ n = n->next) {
+ totchainlen++;
+ }
}
}
chainlen = nchains? (double)totchainlen / (double)nchains : 0;