From: Fabian Keil Date: Tue, 23 Apr 2013 09:37:28 +0000 (+0000) Subject: Remove an unreachable else clause in match_sockaddr() X-Git-Tag: v_3_0_22~257 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=2af4bea25a2ecb1024d1c4a759399e1d22c4f3b4;ds=sidebyside Remove an unreachable else clause in match_sockaddr() Family mismatches are already checked for and dealt with at the beginning of the function (and aren't supposed to happen anyway). --- diff --git a/filters.c b/filters.c index 60d420fa..f3ea8686 100644 --- a/filters.c +++ b/filters.c @@ -1,4 +1,4 @@ -const char filters_rcs[] = "$Id: filters.c,v 1.175 2012/10/21 12:58:03 fabiankeil Exp $"; +const char filters_rcs[] = "$Id: filters.c,v 1.176 2012/12/07 12:45:20 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/filters.c,v $ @@ -200,10 +200,6 @@ static int match_sockaddr(const struct sockaddr_storage *network, netmask_addr += 12; addr_len = 4; } - else if (network->ss_family != address->ss_family) - { - return 0; - } /* XXX: Port check is signaled in netmask */ if (*netmask_port && *network_port != *address_port)