]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Doug Dixon noticed in function handleIMSGiveClientUpdatedOldEntry()
authorwessels <>
Thu, 27 Apr 2006 22:54:16 +0000 (22:54 +0000)
committerwessels <>
Thu, 27 Apr 2006 22:54:16 +0000 (22:54 +0000)
that the call to HTTPMSGLOCK is wrapped in an if statement, but the
call to HTTPMSGUNLOCK isn't, and that the unlink_request variable
is set but otherwise unused.  Probably a bug created by me in
revision 1.95, when converting to HTTPMSGUNLOCK macro.

src/client_side_reply.cc

index 2de1b9bd5c8f07376cf965bf3138eb0c0e74cc81..f54da216851136957646acefb5adc9e234699064 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side_reply.cc,v 1.99 2006/02/26 13:43:05 serassio Exp $
+ * $Id: client_side_reply.cc,v 1.100 2006/04/27 16:54:16 wessels Exp $
  *
  * DEBUG: section 88    Client-side Reply Routines
  * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
@@ -440,7 +440,8 @@ clientReplyContext::handleIMSGiveClientUpdatedOldEntry()
 
         old_entry->timestamp = squid_curtime;
 
-        HTTPMSGUNLOCK(old_entry->mem_obj->request);
+        if (unlink_request)
+            HTTPMSGUNLOCK(old_entry->mem_obj->request);
     }
 
     sendClientOldEntry();