From 2e531e209764c1ece30f0db9db44b2f3724c9069 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Wed, 23 Sep 1998 23:06:59 +0000 Subject: [PATCH] comparison is always 0 due to limited range of data type --- src/htcp.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.47.3