]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix missing flag initialization in rev.13570
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 23 Sep 2014 05:32:41 +0000 (22:32 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 23 Sep 2014 05:32:41 +0000 (22:32 -0700)
This missing flag can cause traffic rejection on some systems if the
flag memory is left at 1 when initialized.

 Detected by Coverity Scan. Issue CID 1239292.

src/anyp/TrafficMode.h

index 8e8b26607bcb35517651f726e6a8a35fca9dbecf..f5c4e56c0027e84c9a5d5872c0088d6eab2bc387 100644 (file)
@@ -21,7 +21,7 @@ namespace AnyP
 class TrafficMode
 {
 public:
-    TrafficMode() : accelSurrogate(false), natIntercept(false), tproxyIntercept(false), tunnelSslBumping(false) {}
+    TrafficMode() : accelSurrogate(false), proxySurrogate(false), natIntercept(false), tproxyIntercept(false), tunnelSslBumping(false) {}
     TrafficMode(const TrafficMode &rhs) { operator =(rhs); }
     TrafficMode &operator =(const TrafficMode &rhs) { memcpy(this, &rhs, sizeof(TrafficMode)); return *this; }