]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
From: Eric Stern <estern@squall.mgl.ca>
authorwessels <>
Thu, 8 Jan 1998 05:46:11 +0000 (05:46 +0000)
committerwessels <>
Thu, 8 Jan 1998 05:46:11 +0000 (05:46 +0000)
not allocating enough for rewritten URL in parseHttpRequest()

src/client_side.cc

index 25bc2e889f25978a8089739588a10b09cb8532a2..6d75da67ee499ecd8f3dc7beb302183392753a36 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.193 1998/01/06 18:12:22 wessels Exp $
+ * $Id: client_side.cc,v 1.194 1998/01/07 22:46:11 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -1474,7 +1474,8 @@ parseHttpRequest(ConnStateData * conn, method_t * method_p, int *status,
             * types should be used to prevent httpd-accelerators 
             * handling requests for non-local servers */
            strtok(t, " :/;@");
-           url_sz = strlen(url) + 32 + Config.appendDomainLen;
+           url_sz = strlen(url) + 32 + Config.appendDomainLen +
+               strlen(t);
            http->uri = xcalloc(url_sz, 1);
            snprintf(http->uri, url_sz, "http://%s:%d%s",
                t, (int) Config.Accel.port, url);