]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #2006: Shield FwdState::abort from FwdState going away under it's feets by a...
authorhno <>
Sat, 21 Jul 2007 22:32:03 +0000 (22:32 +0000)
committerhno <>
Sat, 21 Jul 2007 22:32:03 +0000 (22:32 +0000)
src/forward.cc

index 501fb448478c52d6c2b76301cc7bbc14fec7ee77..69a2bf27650b321e8cd9c72830d2ab1043d4fda8 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: forward.cc,v 1.167 2007/06/19 20:49:37 rousskov Exp $
+ * $Id: forward.cc,v 1.168 2007/07/21 16:32:03 hno Exp $
  *
  * DEBUG: section 17    Request Forwarding
  * AUTHOR: Duane Wessels
@@ -80,6 +80,7 @@ void
 FwdState::abort(void* d)
 {
     FwdState* fwd = (FwdState*)d;
+    Pointer tmp = fwd; // Grab a temporary pointer to keep the object alive during our scope.
 
     if (fwd->server_fd >= 0) {
         comm_close(fwd->server_fd);