From cf751b1c9b47d72cf25308db8a43c2c5c0f03d98 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 18 May 2012 15:19:49 +1000 Subject: [PATCH] don't insist that rbtdb->cachestats exists. --- lib/dns/rbtdb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/dns/rbtdb.c b/lib/dns/rbtdb.c index 7ef80070e4..b78a6249d2 100644 --- a/lib/dns/rbtdb.c +++ b/lib/dns/rbtdb.c @@ -706,7 +706,9 @@ free_rbtdb_callback(isc_task_t *task, isc_event_t *event) { static void update_cachestats(dns_rbtdb_t *rbtdb, isc_result_t result) { INSIST(IS_CACHE(rbtdb)); - INSIST(rbtdb->cachestats != NULL); + + if (rbtdb->cachestats == NULL) + return; switch (result) { case ISC_R_SUCCESS: