]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Call dns_dbiterator_destroy earlier to prevent potential deadlock.
authorMark Andrews <marka@isc.org>
Mon, 16 Dec 2019 07:13:05 +0000 (18:13 +1100)
committerMark Andrews <marka@isc.org>
Fri, 20 Dec 2019 10:31:23 +0000 (21:31 +1100)
lib/dns/zone.c

index d9e95f957bc53e470d1ca6f182a2f01426624907..6fa659a34bbcd8155e906b8d20426a7d089bfb8c 100644 (file)
@@ -15623,6 +15623,8 @@ receive_secure_db(isc_task_t *task, isc_event_t *event) {
                dns_db_detachnode(db, &node);
        }
 
+       dns_dbiterator_destroy(&dbiterator);
+
        /*
         * Call restore_nsec3param() to create private-type records from
         * the old nsec3 parameters and insert them into db