]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3517. [bug] Reorder destruction to avoid shutdown race. [RT #32777]
authorMark Andrews <marka@isc.org>
Wed, 6 Mar 2013 20:13:38 +0000 (07:13 +1100)
committerMark Andrews <marka@isc.org>
Wed, 6 Mar 2013 20:14:58 +0000 (07:14 +1100)
(cherry picked from commit e7b9603ead84761813fd4598303b8e969ab4d7ac)

CHANGES
lib/dns/zone.c

diff --git a/CHANGES b/CHANGES
index 0b7bb6d662d29bebc937a5d73d6321fdc662dfcc..77af222c6167972e23eb3663622835a14392ed63 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+3517.  [bug]           Reorder destruction to avoid shutdown race. [RT #32777]
+
 3515.  [port]          '%T' is not portable in strftime(). [RT #32763]
 
 3514.  [bug]           The ranges for valid key sizes in ddns-confgen and
index 90b33b476493af671f2a0997671055aa6968f176..47a9df58d13a9ff6d24e75bf3d3073a99064f7dd 100644 (file)
@@ -9602,9 +9602,9 @@ notify_send_toaddr(isc_task_t *task, isc_event_t *event) {
        dns_message_destroy(&message);
  cleanup:
        UNLOCK_ZONE(notify->zone);
+       isc_event_free(&event);
        if (result != ISC_R_SUCCESS)
                notify_destroy(notify, ISC_FALSE);
-       isc_event_free(&event);
 }
 
 static void