]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1378: Transparent proxy problem with IP Filter
authorserassio <>
Sun, 25 Sep 2005 18:36:50 +0000 (18:36 +0000)
committerserassio <>
Sun, 25 Sep 2005 18:36:50 +0000 (18:36 +0000)
Incremental patch: fixed a compile warning.

Forward port of 2.5 patch.

src/IPInterception.cc

index 64f1832f1550e6d011a2bb67a5b4f64c46a8570d..ed00b7f48ba03e88aa8131311600979713102a05 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: IPInterception.cc,v 1.12 2005/09/12 14:20:02 serassio Exp $
+ * $Id: IPInterception.cc,v 1.13 2005/09/25 12:36:50 serassio Exp $
  *
  * DEBUG: section 89    NAT / IP Interception 
  * AUTHOR: Robert Collins
@@ -92,11 +92,14 @@ clientNatLookup(int fd, struct sockaddr_in me, struct sockaddr_in peer, struct s
 #if defined(IPFILTER_VERSION) && (IPFILTER_VERSION >= 4000027)
 
     struct ipfobj obj;
+#else
+
+    static int siocgnatl_cmd = SIOCGNATL & 0xff;
+
 #endif
 
     struct natlookup natLookup;
     static int natfd = -1;
-    static int siocgnatl_cmd = SIOCGNATL & 0xff;
     static time_t last_reported = 0;
     int x;