]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
remove assertion that reqnum == 0.
authorwessels <>
Wed, 5 Nov 1997 13:55:01 +0000 (13:55 +0000)
committerwessels <>
Wed, 5 Nov 1997 13:55:01 +0000 (13:55 +0000)
src/icp_v2.cc
src/icp_v3.cc

index 5d360dd8b88a462b2e64430e6ec979ddca666369..13f80edeade3d88294b2e1261d7992c3fbbad768 100644 (file)
@@ -75,7 +75,6 @@ icpCreateMessage(
     char *urloffset = NULL;
     int buf_len;
     buf_len = sizeof(icp_common_t) + strlen(url) + 1;
-    assert(reqnum);
     if (opcode == ICP_OP_QUERY)
        buf_len += sizeof(u_num32);
     buf = xcalloc(buf_len, 1);
index 7fe1d76eaf32bd1a2e60df6b4f0c53cb0d2042c3..2dd120fc7b3ca8f3f130407c7e1adf62e0af0b91 100644 (file)
@@ -23,8 +23,6 @@ icpHandleIcpV3(int fd, struct sockaddr_in from, char *buf, int len)
     header.reqnum = ntohl(headerp->reqnum);
     header.flags = ntohl(headerp->flags);
     header.shostid = ntohl(headerp->shostid);
-    if (header.reqnum == 0)
-       header.reqnum = 0xFFFFFFFF;
 
     switch (header.opcode) {
     case ICP_OP_QUERY: