mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-21 16:39:30 +00:00
5cfd7b3428
formatNetmask() uses its first argument immediately (inet_aton($mask), 2**$mask, hex $mask) with no check that it is defined. Callers that pass an undefined mask trigger "Use of uninitialized value" warnings and a meaningless result instead of a clean failure. Return undef up front when $mask is not defined. Recovered from the unmerged lenovobuild branch (originalacbbeb86). Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com> (cherry picked from commit2d294ae8f7)