]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
not copying enough bytes!
authorwessels <>
Sat, 15 Aug 1998 00:02:49 +0000 (00:02 +0000)
committerwessels <>
Sat, 15 Aug 1998 00:02:49 +0000 (00:02 +0000)
src/pconn.cc

index 2eeeae6d31fd42bc9de920ec6173991ea41eb6f8..721fa6f49c35d3467a6b57300920cb1fa1547ad4 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: pconn.cc,v 1.22 1998/08/14 17:23:41 wessels Exp $
+ * $Id: pconn.cc,v 1.23 1998/08/14 18:02:49 wessels Exp $
  *
  * DEBUG: section 48    Persistent Connections
  * AUTHOR: Duane Wessels
@@ -198,7 +198,7 @@ pconnPush(int fd, const char *host, u_short port)
        p->nfds_alloc <<= 1;
        old = p->fds;
        p->fds = xmalloc(p->nfds_alloc * sizeof(int));
-       xmemcpy(p->fds, old, p->nfds);
+       xmemcpy(p->fds, old, p->nfds * sizeof(int));
        xfree(old);
     }
     p->fds[p->nfds++] = fd;