]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
don't insist that rbtdb->cachestats exists.
authorMark Andrews <marka@isc.org>
Fri, 18 May 2012 05:19:49 +0000 (15:19 +1000)
committerMark Andrews <marka@isc.org>
Fri, 18 May 2012 05:19:49 +0000 (15:19 +1000)
lib/dns/rbtdb.c

index 7ef80070e4d319fd01ca73caed5d3549792305d6..b78a6249d22a57b6f106ccd454142c7aa52825e7 100644 (file)
@@ -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: