Catch total lack of address/port in SNAT argument

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-11-02 19:30:55 -07:00
parent f917670fbd
commit 01a6881f4f
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -5509,6 +5509,8 @@ sub process_snat1( $$$$$$$$$$$$ ) {
$detectaddress = 1;
}
} else {
fatal_error "SNAT rules must spacify a new source address and/or new source ports" unless supplied $addresses;
my $addrlist = '';
my @addrs = split_list $addresses, 'address';