]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
don't compare unsigned w/ <= 0.
authorMark Andrews <marka@isc.org>
Thu, 3 Jun 2004 04:42:38 +0000 (04:42 +0000)
committerMark Andrews <marka@isc.org>
Thu, 3 Jun 2004 04:42:38 +0000 (04:42 +0000)
lib/bind/resolv/res_send.c

index 84d8eb20b23cc46a35800bf63228de81642fc264..ea6d643d61fa1100c0bd2bd474e1eaf8afbfbc21 100644 (file)
@@ -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.10 2004/04/12 07:07:06 marka Exp $";
+static const char rcsid[] = "$Id: res_send.c,v 1.11 2004/06/03 04:42:38 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) {