Validate SOURCE/DEST fit for ipset flags

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-02-17 15:46:28 -08:00
parent 58f0425d4a
commit 1c7476fe61

View File

@ -4313,6 +4313,8 @@ sub get_set_flags( $$ ) {
} elsif ( $setname =~ /^(.*)\[((src|dst)(,(src|dst))*)\]$/ ) {
$setname = $1;
$options = $2;
my @OPTIONS = split /,/, $options;
fatal_error "Invalid flags ($options) for a " . $option eq 'src' ? 'SOURCE' : 'DEST' . ' column';
}
$setname =~ s/^\+//;