Handle missing provider in a masq/snat entry.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-02-24 08:12:02 -08:00
parent 40865dce4d
commit 34c6013f1b

View File

@ -140,6 +140,9 @@ sub process_one_masq1( $$$$$$$$$$ )
if ( $interface =~ /(.*)[(](\w*)[)]$/ ) {
$interface = $1;
my $provider = $2;
fatal_error "Missing Provider ($fullinterface)" unless supplied $provider;
$fullinterface =~ s/[(]\w*[)]//;
my $realm = lookup_provider( $provider );