Delete superfluous statement.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-02-25 17:50:33 -08:00
parent fb17de0595
commit 45d53bdb1d

View File

@ -281,12 +281,10 @@ sub process_one_masq1( $$$$$$$$$$ )
if ( $addr =~ /^(.+)-(.+)$/ ) { if ( $addr =~ /^(.+)-(.+)$/ ) {
fatal_error "Correct address range syntax is '[<addr1>-<addr2>]'" if $addr =~ /]-\[/; fatal_error "Correct address range syntax is '[<addr1>-<addr2>]'" if $addr =~ /]-\[/;
validate_range( $1, $2 ); validate_range( $1, $2 );
$addr =~ s/]-\[/-/;
} else { } else {
validate_address $addr, 0; validate_address $addr, 0;
} }
if ( supplied $ports ) { if ( supplied $ports ) {
validate_portpair1( $proto, $ports ); validate_portpair1( $proto, $ports );
$exceptionrule = do_proto( $proto, '', '' ); $exceptionrule = do_proto( $proto, '', '' );