mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-08-03 16:06:59 +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)
xCAT is a toolkit for the deployment and administration of clusters. xCAT documentation is available at: http://xcat-docs.readthedocs.org/ xCAT is made available as open source software under the EPL license: http://www.opensource.org/licenses/eclipse-1.0.php