]> 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 11:02:32 +0000 (22:02 +1100)
(cherry picked from commit 9d8f9cc8f282843d6de6a00815affa51eea9af7c)

lib/dns/zone.c

index 92a61f92cc4eb6fec8914b946e3355912e10ad38..3e6c0888f602c2c20bfd2aa880ca66576e8089e7 100644 (file)
@@ -15414,6 +15414,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