From: wessels <> Date: Wed, 23 Sep 1998 23:06:59 +0000 (+0000) Subject: comparison is always 0 due to limited range of data type X-Git-Tag: SQUID_3_0_PRE1~2658 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2e531e209764c1ece30f0db9db44b2f3724c9069;p=thirdparty%2Fsquid.git comparison is always 0 due to limited range of data type --- diff --git a/src/htcp.cc b/src/htcp.cc index e308c80758..d3a953cf8b 100644 --- a/src/htcp.cc +++ b/src/htcp.cc @@ -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;