]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
comparison is always 0 due to limited range of data type
authorwessels <>
Wed, 23 Sep 1998 23:06:59 +0000 (23:06 +0000)
committerwessels <>
Wed, 23 Sep 1998 23:06:59 +0000 (23:06 +0000)
src/htcp.cc

index e308c80758262dd5bb7ea6a8ec3f3e593b96d65e..d3a953cf8b0dbe0335d525dfeec6bfad352dbd9c 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: htcp.cc,v 1.24 1998/09/22 19:59:15 wessels Exp $
+ * $Id: htcp.cc,v 1.25 1998/09/23 17:06:59 wessels Exp $
  *
  * DEBUG: section 31    Hypertext Caching Protocol
  * AUTHOR: Duane Wesssels
@@ -714,7 +714,7 @@ htcpHandleData(char *buf, int sz, struct sockaddr_in *from)
     hdr.msg_id = ntohl(hdr.msg_id);
     debug(31, 1) ("htcpHandleData: sz = %d\n", sz);
     debug(31, 1) ("htcpHandleData: length = %d\n", (int) hdr.length);
-    if (hdr.opcode < HTCP_NOP || hdr.opcode > HTCP_END) {
+    if (hdr.opcode > HTCP_END) {
        debug(31, 0) ("htcpHandleData: opcode %d out of range\n",
            (int) hdr.opcode);
        return;