2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-28 15:21:11 +00:00

macdata can be a string, ignore that as well

This commit is contained in:
Jarrod Johnson
2017-04-04 09:50:05 -04:00
parent 74fba1a3b8
commit e718235ae2

View File

@@ -4696,7 +4696,7 @@ sub parseboard {
my $macdata = $boardinf{extra}->[6]->{value};
my $macstring = "1";
my $macprefix;
while ($macdata and $macstring !~ /00:00:00:00:00:00/ and not ref $global_sessdata->{currmacs}) {
while ($macdata and ref $macdata and $macstring !~ /00:00:00:00:00:00/ and not ref $global_sessdata->{currmacs}) {
my @currmac = splice @$macdata, 0, 6;
unless ((scalar @currmac) == 6) {
last;