]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Use close() instead of shutdown() on socket FD
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 16 Sep 2009 06:46:44 +0000 (18:46 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 16 Sep 2009 06:46:44 +0000 (18:46 +1200)
src/ip/IpIntercept.cc

index db828ef0a5b51382522683ffc713f9405b10160e..9f2edeb2cbd944f1dae6f2f9ee3715073f9ef9a1 100644 (file)
@@ -477,11 +477,11 @@ IpIntercept::ProbeForTproxy(IpAddress &test)
             bind(tmp_sock, (struct sockaddr*)&tmp_ip6, sizeof(struct sockaddr_in6)) == 0 ) {
 
             debugs(3, 3, "IPv6 TPROXY support detected. Using.");
-            shutdown(tmp_sock, SHUT_RDWR);
+            close(tmp_sock);
             return true;
         }
         if (tmp_sock >= 0) {
-            shutdown(tmp_sock, SHUT_RDWR);
+            close(tmp_sock);
             tmp_sock = -1;
         }
     }
@@ -506,11 +506,11 @@ IpIntercept::ProbeForTproxy(IpAddress &test)
             bind(tmp_sock, (struct sockaddr*)&tmp_ip4, sizeof(struct sockaddr_in)) == 0 ) {
 
             debugs(3, 3, "IPv4 TPROXY support detected. Using.");
-            shutdown(tmp_sock, SHUT_RDWR);
+            close(tmp_sock);
             return true;
         }
         if (tmp_sock >= 0) {
-            shutdown(tmp_sock, SHUT_RDWR);
+            close(tmp_sock);
         }
     }