From: wessels <> Date: Sat, 3 Jan 1998 01:09:20 +0000 (+0000) Subject: From: "Michael O'Reilly" X-Git-Tag: SQUID_3_0_PRE1~4291 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=16b9d3dfd69c0e27a3d264b2fd57e558b8ddfa9e;p=thirdparty%2Fsquid.git From: "Michael O'Reilly" In clientRedirectDone(), xstrdup request->headers instead of copy by reference. --- diff --git a/src/client_side.cc b/src/client_side.cc index d9bf4686ce..8c98f50650 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.186 1998/01/02 02:06:03 wessels Exp $ + * $Id: client_side.cc,v 1.187 1998/01/02 18:09:20 wessels Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -250,7 +250,7 @@ clientRedirectDone(void *data, char *result) http->uri = xcalloc(l, 1); xstrncpy(http->uri, result, l); new_request->http_ver = old_request->http_ver; - new_request->headers = old_request->headers; + new_request->headers = xstrdup(old_request->headers); new_request->headers_sz = old_request->headers_sz; requestUnlink(old_request); http->request = requestLink(new_request);