From: Mark Andrews Date: Fri, 7 Oct 2005 04:03:25 +0000 (+0000) Subject: 1923. [bug] ns_client_detach() called too early. [RT #15499] X-Git-Tag: v9.2.7b1~91^2~159 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=e23932d3c8c154cff3fea0ecff64e26c6ac6f5d8;p=thirdparty%2Fbind9.git 1923. [bug] ns_client_detach() called too early. [RT #15499] --- diff --git a/CHANGES b/CHANGES index a8274391a34..a7165653403 100644 --- 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(). diff --git a/bin/named/update.c b/bin/named/update.c index 6fa17bfbcf9..716b1990603 100644 --- a/bin/named/update.c +++ b/bin/named/update.c @@ -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 @@ -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); }