From: wessels <> Date: Sat, 4 Jul 1998 06:34:07 +0000 (+0000) Subject: body_buf/body_size sync fix X-Git-Tag: SQUID_3_0_PRE1~3111 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a43d828adc5504ffb7c8f5130a66d279bb0ed92d;p=thirdparty%2Fsquid.git body_buf/body_size sync fix --- diff --git a/src/client_side.cc b/src/client_side.cc index 4d572b37fb..e22ed4f357 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.340 1998/07/04 00:17:15 wessels Exp $ + * $Id: client_side.cc,v 1.341 1998/07/04 00:34:07 wessels Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -1440,7 +1440,8 @@ clientSendMoreData(void *data, char *buf, ssize_t size) if (rep) { body_size = size - rep->hdr_sz; assert(body_size >= 0); - body_buf = buf + rep->hdr_sz; + if (body_size) + body_buf = buf + rep->hdr_sz; http->range_iter.prefix_size = rep->hdr_sz; debug(33, 3) ("clientSendMoreData: Appending %d bytes after %d bytes of headers\n", body_size, rep->hdr_sz);