diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-10-12 16:55:30 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-10-12 16:55:30 +0000 |
commit | 2b07ca296173047645a13b835c4a9fa6b13b3508 (patch) | |
tree | e79674fd8c022a955c8d8dffc8675bca01257572 /main | |
parent | 00b5c55880527990fd756938378dfcc785ea920f (diff) |
Oops, incorrect range (although unallocated at ARIN)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@291263 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/acl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/acl.c b/main/acl.c index 53eb0b996..383fa3b87 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 |