]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
when code is duplicated (which it shouldn't be), it should at
authorAndreas Gustafsson <source@isc.org>
Tue, 19 Dec 2000 19:19:45 +0000 (19:19 +0000)
committerAndreas Gustafsson <source@isc.org>
Tue, 19 Dec 2000 19:19:45 +0000 (19:19 +0000)
least be duplicated consistently

lib/isc/unix/socket.c

index caad56071c16cb7beec09dffcf46f36c3df82ea7..e06e371929af8aa886f2788b5df58fb8e8222925 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: socket.c,v 1.174 2000/12/06 01:53:38 bwelling Exp $ */
+/* $Id: socket.c,v 1.175 2000/12/19 19:19:45 gson Exp $ */
 
 #include <config.h>
 
@@ -2434,11 +2434,11 @@ isc_socket_recv(isc_socket_t *sock, isc_region_t *region, unsigned int minimum,
        dev->region = *region;
        dev->ev_sender = task;
 
-       was_empty = ISC_LIST_EMPTY(sock->recv_list);
 
        /*
         * If the read queue is empty, try to do the I/O right now.
         */
+       was_empty = ISC_LIST_EMPTY(sock->recv_list);
        if (!was_empty)
                goto queue;