From c31992136590c3399163804f1c5b184f2862ccf8 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 25 Oct 2011 06:19:34 -0700 Subject: [PATCH] Correct validation of 4in6 addresses Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/IPAddrs.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/IPAddrs.pm b/Shorewall/Perl/Shorewall/IPAddrs.pm index 3ab7eb922..ea5617bd9 100644 --- a/Shorewall/Perl/Shorewall/IPAddrs.pm +++ b/Shorewall/Perl/Shorewall/IPAddrs.pm @@ -530,7 +530,7 @@ sub valid_6address( $ ) { return 0 unless valid_4address pop @address; $max = 6; $address = join ':', @address; - return 1 if @address eq ':'; + return 1 if $address eq ':'; } else { $max = 8; }