From: adrian <> Date: Mon, 2 Oct 2006 17:35:39 +0000 (+0000) Subject: Remove another instance of temporary string abuse. X-Git-Tag: SQUID_3_0_PRE5~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aaac15e60da5d4645724d4b9c819a28eba7b9562;p=thirdparty%2Fsquid.git Remove another instance of temporary string abuse. --- diff --git a/src/client_side_reply.cc b/src/client_side_reply.cc index d928b940c1..b1acc33fa7 100644 --- a/src/client_side_reply.cc +++ b/src/client_side_reply.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side_reply.cc,v 1.113 2006/09/25 15:04:06 adrian Exp $ + * $Id: client_side_reply.cc,v 1.114 2006/10/02 11:35:39 adrian Exp $ * * DEBUG: section 88 Client-side Reply Routines * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c) @@ -1325,7 +1325,8 @@ clientReplyContext::buildReplyHeader() /* Append VIA */ { LOCAL_ARRAY(char, bbuf, MAX_URL + 32); - String strVia = hdr->getList(HDR_VIA); + String strVia; + hdr->getList(HDR_VIA, &strVia); snprintf(bbuf, sizeof(bbuf), "%d.%d %s", reply->sline.version.major, reply->sline.version.minor, @@ -1333,7 +1334,6 @@ clientReplyContext::buildReplyHeader() strListAdd(&strVia, bbuf, ','); hdr->delById(HDR_VIA); hdr->putStr(HDR_VIA, strVia.buf()); - strVia.clean(); } /* Signal keep-alive if needed */ hdr->putStr(http->flags.accel ? HDR_CONNECTION : HDR_PROXY_CONNECTION,