]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
DW:
authorwessels <>
Thu, 11 May 2000 09:05:23 +0000 (09:05 +0000)
committerwessels <>
Thu, 11 May 2000 09:05:23 +0000 (09:05 +0000)
 Benno Rice (benno@netizen.com.au) reports "two instances where
 read handlers were treating their fd_table read data as a pointer
 to an int and attempting to increment it, even though NULL was
 passed, or somesuch"

src/client_side.cc
src/dns_internal.cc

index fda78752c968a581ae309942e6ec99e463791382..4732b67737d5b3b6e6ac76f14c1409ff0e79109c 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.480 2000/05/07 16:18:19 adrian Exp $
+ * $Id: client_side.cc,v 1.481 2000/05/11 03:05:23 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -2684,6 +2684,7 @@ httpAccept(int sock, void *data)
        commSetSelect(fd, COMM_SELECT_READ, clientReadRequest, connState, 0);
        commSetDefer(fd, clientReadDefer, connState);
        clientdbEstablished(peer.sin_addr, 1);
+       assert(N);
        (*N)++;
     }
 }
index 6d62d0da7f80514407cb2d6cc3a5e1fcbfcf3f5e..545eb9b201924ccae7f0790715a7446e0e1f41d4 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: dns_internal.cc,v 1.22 2000/05/02 22:34:46 hno Exp $
+ * $Id: dns_internal.cc,v 1.23 2000/05/11 03:05:24 wessels Exp $
  *
  * DEBUG: section 78    DNS lookups; interacts with lib/rfc1035.c
  * AUTHOR: Duane Wessels
@@ -322,6 +322,7 @@ idnsRead(int fd, void *data)
            break;
        }
        fd_bytes(DnsSocket, len, FD_READ);
+       assert(N);
        (*N)++;
        debug(78, 3) ("idnsRead: FD %d: received %d bytes from %s.\n",
            fd,