From: Mark Andrews Date: Fri, 7 Oct 2005 04:07:54 +0000 (+0000) Subject: 1923. [bug] ns_client_detach() called too early. [RT #15499] X-Git-Tag: v9.4.0a2~30 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=b9a8524f2fa0eb92d2d7dba60f4500bd483495c5;p=thirdparty%2Fbind9.git 1923. [bug] ns_client_detach() called too early. [RT #15499] --- diff --git a/CHANGES b/CHANGES index 4c08cc92dc7..39b5745409b 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 58f3e112290..bcc55897679 100644 --- a/bin/named/update.c +++ b/bin/named/update.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: update.c,v 1.109.18.14 2005/08/25 00:05:42 marka Exp $ */ +/* $Id: update.c,v 1.109.18.15 2005/10/07 04:07:53 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); }