mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-13 23:09:40 +02:00
util/nvmutil: reset macbuf in reset_global_state
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -175,6 +175,8 @@ reset_global_state(void)
|
|||||||
cmd = NULL;
|
cmd = NULL;
|
||||||
fd = 0;
|
fd = 0;
|
||||||
part = 0;
|
part = 0;
|
||||||
|
|
||||||
|
memset(macbuf, 0, sizeof(macbuf));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -323,8 +325,6 @@ parse_mac_string(void)
|
|||||||
if (strnlen(mac, 20) != 17)
|
if (strnlen(mac, 20) != 17)
|
||||||
err(EINVAL, "MAC address is the wrong length");
|
err(EINVAL, "MAC address is the wrong length");
|
||||||
|
|
||||||
memset(macbuf, 0, sizeof(macbuf));
|
|
||||||
|
|
||||||
for (mac_pos = 0; mac_pos < 16; mac_pos += 3)
|
for (mac_pos = 0; mac_pos < 16; mac_pos += 3)
|
||||||
set_mac_byte(mac_pos);
|
set_mac_byte(mac_pos);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user