mirror of
https://gitlab.com/shorewall/code.git
synced 2025-07-01 07:00:04 +02:00
Validate SOURCE/DEST fit for ipset flags
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
@ -4313,6 +4313,8 @@ sub get_set_flags( $$ ) {
|
|||||||
} elsif ( $setname =~ /^(.*)\[((src|dst)(,(src|dst))*)\]$/ ) {
|
} elsif ( $setname =~ /^(.*)\[((src|dst)(,(src|dst))*)\]$/ ) {
|
||||||
$setname = $1;
|
$setname = $1;
|
||||||
$options = $2;
|
$options = $2;
|
||||||
|
my @OPTIONS = split /,/, $options;
|
||||||
|
fatal_error "Invalid flags ($options) for a " . $option eq 'src' ? 'SOURCE' : 'DEST' . ' column';
|
||||||
}
|
}
|
||||||
|
|
||||||
$setname =~ s/^\+//;
|
$setname =~ s/^\+//;
|
||||||
|
Reference in New Issue
Block a user