summaryrefslogtreecommitdiff
path: root/tables
diff options
context:
space:
mode:
Diffstat (limited to 'tables')
-rw-r--r--tables/apr_hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tables/apr_hash.c b/tables/apr_hash.c
index 6f30b68fc..05ee42f46 100644
--- a/tables/apr_hash.c
+++ b/tables/apr_hash.c
@@ -498,12 +498,12 @@ APR_DECLARE(int) apr_hash_do(apr_hash_do_callback_fn_t *comp,
/* Scan the entire table */
do {
rv = (*comp)(rec, hi->this->key, hi->this->klen, hi->this->val);
- } while ((hi = apr_hash_next(hi)));
+ } while (rv && (hi = apr_hash_next(hi)));
if (rv == 0) {
dorv = 0;
}
- }
+ }
return dorv;
}