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 5ae3e239e6
commit 5ec7759d81

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;
}