From: Amos Jeffries Date: Wed, 16 Sep 2009 06:46:44 +0000 (+1200) Subject: Use close() instead of shutdown() on socket FD X-Git-Tag: SQUID_3_2_0_1~714 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb5bffa3966cddc739c6ee3ef2529db00e708cbf;p=thirdparty%2Fsquid.git Use close() instead of shutdown() on socket FD --- diff --git a/src/ip/IpIntercept.cc b/src/ip/IpIntercept.cc index db828ef0a5..9f2edeb2cb 100644 --- a/src/ip/IpIntercept.cc +++ b/src/ip/IpIntercept.cc @@ -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); } }