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:
yinle 2011-06-27 08:52:56 +00:00
parent 54fde0ff08
commit 1d6f346366

View File

@ -5729,6 +5729,10 @@ sub isIpaddr
$addr = shift;
}
unless ( $addr )
{
return 0;
}
#print "addr=$addr\n";
if ($addr !~ /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/)
{