2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-08-03 16:06:59 +00:00

Merge pull request #7682 from xcat2/backport-7618-to-2.18

[Backport 2.18] fix(NetworkUtils): guard formatNetmask against an undefined mask
This commit is contained in:
xcat2-backport-automation[bot]
2026-07-24 15:24:50 +00:00
committed by GitHub
+1
View File
@@ -1389,6 +1389,7 @@ sub formatNetmask
my $origType = shift;
my $newType = shift;
my $maskn;
if (not defined $mask) { return undef; }
if ($origType == 0)
{
$maskn = unpack("N", inet_aton($mask));