From: wessels <> Date: Thu, 8 Jan 1998 05:46:11 +0000 (+0000) Subject: From: Eric Stern X-Git-Tag: SQUID_3_0_PRE1~4226 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12fc602c0c35586852c409237f571defc068735f;p=thirdparty%2Fsquid.git From: Eric Stern not allocating enough for rewritten URL in parseHttpRequest() --- diff --git a/src/client_side.cc b/src/client_side.cc index 25bc2e889f..6d75da67ee 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -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);