From: Mark Andrews Date: Thu, 3 Jun 2004 04:38:11 +0000 (+0000) Subject: don't compare unsigned w/ <= 0. X-Git-Tag: v9.2.3rc4^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ff7948342b10fc184eb7a678b936bf3da454dfd;p=thirdparty%2Fbind9.git don't compare unsigned w/ <= 0. --- diff --git a/lib/bind/resolv/res_send.c b/lib/bind/resolv/res_send.c index 71e8a8ee60c..6931189a98e 100644 --- a/lib/bind/resolv/res_send.c +++ b/lib/bind/resolv/res_send.c @@ -70,7 +70,7 @@ #if defined(LIBC_SCCS) && !defined(lint) static const char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93"; -static const char rcsid[] = "$Id: res_send.c,v 1.5.2.5 2004/04/12 07:02:05 marka Exp $"; +static const char rcsid[] = "$Id: res_send.c,v 1.5.2.6 2004/06/03 04:38:11 marka Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -656,7 +656,7 @@ send_vc(res_state statp, len = INT16SZ; while ((n = read(statp->_vcsock, (char *)cp, (int)len)) > 0) { cp += n; - if ((len -= n) <= 0) + if ((len -= n) == 0) break; } if (n <= 0) {