]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
error path could trigger a REQUIRE failure in ns_client_next.
authorMark Andrews <marka@isc.org>
Fri, 4 Jul 2003 04:38:54 +0000 (04:38 +0000)
committerMark Andrews <marka@isc.org>
Fri, 4 Jul 2003 04:38:54 +0000 (04:38 +0000)
bin/named/client.c

index df14047736f9af78884c53044258956aa8d328d8..9ac61d7772269c81fa34d4cfb5c0bd82e98f7d07 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: client.c,v 1.215 2003/02/26 02:03:57 marka Exp $ */
+/* $Id: client.c,v 1.216 2003/07/04 04:38:54 marka Exp $ */
 
 #include <config.h>
 
@@ -613,7 +613,8 @@ ns_client_next(ns_client_t *client, isc_result_t result) {
        int newstate;
 
        REQUIRE(NS_CLIENT_VALID(client));
-       REQUIRE(client->state == NS_CLIENTSTATE_WORKING);
+       REQUIRE(client->state == NS_CLIENTSTATE_WORKING ||
+               client->state == NS_CLIENTSTATE_READING);
 
        CTRACE("next");