add check in getNodeIPaddress, return 0 if the input node is undef.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9947 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
54fde0ff08
commit
1d6f346366
@ -5729,6 +5729,10 @@ sub isIpaddr
|
||||
$addr = shift;
|
||||
}
|
||||
|
||||
unless ( $addr )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#print "addr=$addr\n";
|
||||
if ($addr !~ /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user