From: Tilghman Lesher Date: Tue, 12 Oct 2010 16:55:30 +0000 (+0000) Subject: Oops, incorrect range (although unallocated at ARIN) X-Git-Tag: 1.4.38-rc1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fa0d857f55d0321d68d63ac8489dd9074dbc162;p=thirdparty%2Fasterisk.git Oops, incorrect range (although unallocated at ARIN) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@291263 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/acl.c b/main/acl.c index 53eb0b996a..383fa3b877 100644 --- a/main/acl.c +++ b/main/acl.c @@ -110,8 +110,8 @@ static void score_address(const struct sockaddr_in *sin, struct in_addr *best_ad /* 172.20.0.0 - 172.29.255.255, but not 172.200.0.0 - 172.255.255.255 nor 172.2.0.0 - 172.2.255.255 */ else if (address[4] == '2' && address[6] == '.') score = -5; - /* 172.30.0.0 - 172.31.255.255 */ - else if (address[4] == '3' && address[5] <= '1') + /* 172.30.0.0 - 172.31.255.255, but not 172.3.0.0 - 172.3.255.255 */ + else if (address[4] == '3' && (address[5] == '0' || address[5] == '1')) score = -5; /* All other 172 addresses are public */ else