From 34c6013f1bd7f664d2fb8f8f41e197a1601dd982 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 24 Feb 2013 08:12:02 -0800 Subject: [PATCH] Handle missing provider in a masq/snat entry. Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Nat.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Shorewall/Perl/Shorewall/Nat.pm b/Shorewall/Perl/Shorewall/Nat.pm index 0eea85769..cb83b81ef 100644 --- a/Shorewall/Perl/Shorewall/Nat.pm +++ b/Shorewall/Perl/Shorewall/Nat.pm @@ -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 );