mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-09 01:04:06 +01:00
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:
parent
5ae3e239e6
commit
5ec7759d81
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user