]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1923. [bug] ns_client_detach() called too early. [RT #15499]
authorMark Andrews <marka@isc.org>
Fri, 7 Oct 2005 04:03:25 +0000 (04:03 +0000)
committerMark Andrews <marka@isc.org>
Fri, 7 Oct 2005 04:03:25 +0000 (04:03 +0000)
CHANGES
bin/named/update.c

diff --git a/CHANGES b/CHANGES
index a8274391a344f2b80b325340a596ace467277988..a71656534039f1e4a44c4dd19692599b9a791246 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+1923.  [bug]           ns_client_detach() called too early. [RT #15499]
+
 1922.  [bug]           check-tool.c:setup_logging() missing call to
                        dns_log_setcontext().
 
index 6fa17bfbcf97804365bb5496ad9897b9e426e18d..716b199060392ff9631b49ed2a5bfd4ae9e33a3f 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: update.c,v 1.124 2005/08/24 23:53:57 marka Exp $ */
+/* $Id: update.c,v 1.125 2005/10/07 04:03:24 marka Exp $ */
 
 #include <config.h>
 
@@ -2844,8 +2844,8 @@ updatedone_action(isc_task_t *task, isc_event_t *event) {
        INSIST(client->nupdates > 0);
        client->nupdates--;
        respond(client, uev->result);
-       ns_client_detach(&client);
        isc_event_free(&event);
+       ns_client_detach(&client);
 }
 
 /*%
@@ -2861,8 +2861,8 @@ forward_fail(isc_task_t *task, isc_event_t *event) {
        INSIST(client->nupdates > 0);
        client->nupdates--;
        respond(client, DNS_R_SERVFAIL);
-       ns_client_detach(&client);
        isc_event_free(&event);
+       ns_client_detach(&client);
 }