From 0833ef954a9edccfaccdcae0aac05fc2b0040562 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Tue, 19 Dec 2000 19:19:45 +0000 Subject: [PATCH] when code is duplicated (which it shouldn't be), it should at least be duplicated consistently --- lib/isc/unix/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/isc/unix/socket.c b/lib/isc/unix/socket.c index caad56071c..e06e371929 100644 --- a/lib/isc/unix/socket.c +++ b/lib/isc/unix/socket.c @@ -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 @@ -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;