From 907d3bbd17c9ab3c153cbeb0677eca8fe467529d Mon Sep 17 00:00:00 2001 From: teastep Date: Tue, 16 Dec 2008 01:41:59 +0000 Subject: [PATCH] Add address normalization to IPv6 range checking -- Take 3 git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9071 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/IPAddrs.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Shorewall-perl/Shorewall/IPAddrs.pm b/Shorewall-perl/Shorewall/IPAddrs.pm index f254a790e..6a377e18d 100644 --- a/Shorewall-perl/Shorewall/IPAddrs.pm +++ b/Shorewall-perl/Shorewall/IPAddrs.pm @@ -575,6 +575,7 @@ sub validate_6range( $$ ) { my ( $l, $h) = ( shift @low, shift @high ); next if hex "0x$l" == hex "0x$h"; return 1 if hex "0x$l" < hex "0x$h"; + last; } fatal_error "Invalid IPv6 Range ($low-$high)";