]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
The cloned HttpReply needs a reference lock
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Sat, 15 Mar 2008 19:34:36 +0000 (20:34 +0100)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Sat, 15 Mar 2008 19:34:36 +0000 (20:34 +0100)
src/client_side_reply.cc

index b74ace1ef2b50ef432a67dd5b9d6e0af31329ad5..7acb589c11035f2769b2e5a9d696f43d85eb2a11 100644 (file)
@@ -1953,7 +1953,7 @@ clientReplyContext::sendMoreData (StoreIOBuffer result)
     }
 
     if (!reply) {
-       reply = entry->mem_obj->getReply()->clone();
+       reply = HTTPMSGLOCK(entry->mem_obj->getReply()->clone());
     }
     if ((long)reqofs < reply->hdr_sz) {
         waitForMoreData();