make_mac_path(): fix leaked file descriptor.
make_mac_path(): fix leaked file descriptor.

When make_mac_path() gets an error from efidp_make_mac_addr(), it fails
to close the file descriptor to the network device.  So close it.  Also
ensure that the ifrn_name field is NUL terminated.

Found by covscan.

Signed-off-by: Peter Jones <2e0a021e603479ff81838c00c3b770daca4e0214@redhat.com>

vathpela/efivar-devel,rhboot/efivar,rhboot/efivar,rhinstaller/efivar,rhinstaller/efivar