From: rousskov <> Date: Sat, 6 Jun 1998 03:25:52 +0000 (+0000) Subject: - changed internal structure of HttpBody to use MemBuf; X-Git-Tag: SQUID_3_0_PRE1~3163 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=96a5be3d2fdb0a133abb239fcbe9ad1d0a9e24d7;p=thirdparty%2Fsquid.git - changed internal structure of HttpBody to use MemBuf; no more inconsistencies with body.size --- diff --git a/src/urn.cc b/src/urn.cc index e40e78b19d..0b595535a0 100644 --- a/src/urn.cc +++ b/src/urn.cc @@ -1,7 +1,7 @@ /* * - * $Id: urn.cc,v 1.35 1998/06/04 18:57:19 wessels Exp $ + * $Id: urn.cc,v 1.36 1998/06/05 21:25:52 rousskov Exp $ * * DEBUG: section 52 URN Parsing * AUTHOR: Kostas Anagnostakis @@ -284,7 +284,7 @@ urnHandleReply(void *data, char *buf, ssize_t size) } else if (min_u) { httpHeaderPutStr(&rep->header, HDR_LOCATION, min_u->url); } - httpBodySet(&rep->body, mb.buf, mb.size + 1, memBufFreeFunc(&mb)); + httpBodySet(&rep->body, &mb); httpReplySwapOut(rep, e); storeComplete(e); memFree(MEM_4K_BUF, buf); @@ -293,7 +293,7 @@ urnHandleReply(void *data, char *buf, ssize_t size) safe_free(urls[i].host); } safe_free(urls); - /* mb was frozen with memBufFreeFunc call, so we must not clean it */ + /* mb was absorbed in httpBodySet call, so we must not clean it */ storeUnregister(urlres_e, urnState); storeUnlockObject(urlres_e); storeUnlockObject(urnState->entry);