[asterisk-commits] tilghman: branch 1.4 r291263 - /branches/1.4/main/acl.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 12 11:55:32 CDT 2010


Author: tilghman
Date: Tue Oct 12 11:55:30 2010
New Revision: 291263

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=291263
Log:
Oops, incorrect range (although unallocated at ARIN)

Modified:
    branches/1.4/main/acl.c

Modified: branches/1.4/main/acl.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/main/acl.c?view=diff&rev=291263&r1=291262&r2=291263
==============================================================================
--- branches/1.4/main/acl.c (original)
+++ branches/1.4/main/acl.c Tue Oct 12 11:55:30 2010
@@ -110,8 +110,8 @@
 		/* 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




More information about the asterisk-commits mailing list