From 533a475acab1d92a9390120c36e2bc6a99dc6941 Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Tue, 21 Feb 2012 03:09:35 +0000 Subject: [PATCH] fix bug 3489503, ipv6 in network table will bring abnormal error for 'rspconfig cmm initnetwork=*' git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11647 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/NetworkUtils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/NetworkUtils.pm b/perl-xCAT/xCAT/NetworkUtils.pm index b5fb6c9f4..f8ba36b9e 100755 --- a/perl-xCAT/xCAT/NetworkUtils.pm +++ b/perl-xCAT/xCAT/NetworkUtils.pm @@ -377,7 +377,7 @@ sub ishostinsubnet { $ip = getipaddr($ip,GetNumber=>1); $subnet = getipaddr($subnet,GetNumber=>1); $ip &= $mask; - if ($ip == $subnet) { + if ($ip && $subnet && ($ip == $subnet)) { return 1; } else { return 0;