net: ip from host: avoid using an undefined variable in die

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-09-17 10:58:08 +02:00
parent 1981940474
commit c45692e04a

View File

@ -642,7 +642,7 @@ sub get_ip_from_hostname {
}
}
if (!defined($ip) ) {
die "hostname lookup '$hostname' failed - got local IP address '$ip'\n" if !$noerr;
die "address lookup for '$hostname' did not find any IP address\n" if !$noerr;
return undef;
}