From 212ec6ececf72b39bbe90e2f2d94edc031bc5739 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 16 Jun 2011 13:45:21 +0000 Subject: [PATCH] Workaround issues when getipaddr returns undefined value in ddns git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9827 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ddns.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server/lib/xcat/plugins/ddns.pm b/xCAT-server/lib/xcat/plugins/ddns.pm index f016d48b9..18bd3f6e9 100644 --- a/xCAT-server/lib/xcat/plugins/ddns.pm +++ b/xCAT-server/lib/xcat/plugins/ddns.pm @@ -36,6 +36,7 @@ sub getzonesfornet { die "Not supporting having a mask like $mask on an ipv6 network like $net"; } my $netnum= getipaddr($net,GetNumber=>1); + unless ($netnum) { return (); } $netnum->brsft(128-$maskbits); my $prefix=$netnum->as_hex(); my $nibbs=$maskbits/4;