mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 01:37:59 +02:00
Another ':' parsing issue
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8362 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
c0dd4f3911
commit
5288b1d64d
@ -14,7 +14,7 @@ Changes in 4.1.7
|
|||||||
|
|
||||||
7) Fix priority mingling in tc filters.
|
7) Fix priority mingling in tc filters.
|
||||||
|
|
||||||
8) Fix policy parsing.
|
8) Fix ":" parsing errors.
|
||||||
|
|
||||||
Changes in 4.1.6
|
Changes in 4.1.6
|
||||||
|
|
||||||
|
@ -92,6 +92,9 @@ Problems corrected in Shorewall-perl 4.1.7.
|
|||||||
4) A POLICY of ":" in /etc/shorewall/policy would produce Perl
|
4) A POLICY of ":" in /etc/shorewall/policy would produce Perl
|
||||||
run-time errors.
|
run-time errors.
|
||||||
|
|
||||||
|
6) An INTERFACE of ":" in /etc/shorewall/interfaces would produce Perl
|
||||||
|
run-time errors.
|
||||||
|
|
||||||
New Features in 4.1.7.
|
New Features in 4.1.7.
|
||||||
|
|
||||||
1) If an interface fails when using balanced multi-ISP routing, the
|
1) If an interface fails when using balanced multi-ISP routing, the
|
||||||
|
@ -598,7 +598,7 @@ sub validate_interfaces_file( $ )
|
|||||||
$first_entry = 0;
|
$first_entry = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
my ($zone, $interface, $networks, $options ) = split_line 2, 4, 'interfaces file';
|
my ($zone, $originalinterface, $networks, $options ) = split_line 2, 4, 'interfaces file';
|
||||||
my $zoneref;
|
my $zoneref;
|
||||||
my $bridge = '';
|
my $bridge = '';
|
||||||
|
|
||||||
@ -614,9 +614,9 @@ sub validate_interfaces_file( $ )
|
|||||||
$networks = '' if $networks eq '-';
|
$networks = '' if $networks eq '-';
|
||||||
$options = '' if $options eq '-';
|
$options = '' if $options eq '-';
|
||||||
|
|
||||||
( $interface, my ($port, $extra) ) = split /:/ , $interface, 3;
|
my ($interface, $port, $extra) = split /:/ , $originalinterface, 3;
|
||||||
|
|
||||||
fatal_error "Invalid INTERFACE (" . join (':', $interface, $port, $extra ) . ')' if defined $extra || ! $interface;
|
fatal_error "Invalid INTERFACE ($originalinterface)" if ! $interface || defined $extra;
|
||||||
|
|
||||||
fatal_error "Invalid Interface Name (+)" if $interface eq '+';
|
fatal_error "Invalid Interface Name (+)" if $interface eq '+';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user