summaryrefslogtreecommitdiff
path: root/tables/apr_tables.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2013-07-28 05:06:53 +0000
committerPeter Wemm <peter@FreeBSD.org>2013-07-28 05:06:53 +0000
commitf2be5817e9c3cb98a81689acb42dc6549ae0448f (patch)
tree3c0eb477642c8cddce38b6c98c437cca2f2cbda9 /tables/apr_tables.c
parentb641829dcad12c65ed87cf0ebe11100791b9256a (diff)
Diffstat (limited to 'tables/apr_tables.c')
-rw-r--r--tables/apr_tables.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tables/apr_tables.c b/tables/apr_tables.c
index 51b23407cc0ee..7479ef47c7aee 100644
--- a/tables/apr_tables.c
+++ b/tables/apr_tables.c
@@ -734,11 +734,14 @@ APR_DECLARE(void) apr_table_mergen(apr_table_t *t, const char *key,
#if APR_POOL_DEBUG
{
- if (!apr_pool_is_ancestor(apr_pool_find(key), t->a.pool)) {
+ apr_pool_t *pool;
+ pool = apr_pool_find(key);
+ if ((pool != key) && (!apr_pool_is_ancestor(pool, t->a.pool))) {
fprintf(stderr, "apr_table_mergen: key not in ancestor pool of t\n");
abort();
}
- if (!apr_pool_is_ancestor(apr_pool_find(val), t->a.pool)) {
+ pool = apr_pool_find(val);
+ if ((pool != val) && (!apr_pool_is_ancestor(pool, t->a.pool))) {
fprintf(stderr, "apr_table_mergen: val not in ancestor pool of t\n");
abort();
}