Don't pass an undefined value to fatal_error when numeric conversion fails.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-01-16 12:35:18 -08:00
parent 60024a1135
commit eca75e3094

View File

@ -309,7 +309,7 @@ sub validate_port( $$ ) {
$value = getservbyname( $port, $proto );
}
fatal_error "Invalid/Unknown $proto port/service ($port)" unless defined $value;
fatal_error "Invalid/Unknown $proto port/service ($_[1])" unless defined $value;
$value;
}