mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
util/nvmutil: reset mac_buf for mac parsing
preventative fix for later, if the tool is ever expanded to have a better command syntax, for supporting more than one file at a time. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -482,6 +482,8 @@ parse_mac_string(void)
|
||||
if (strlen(mac_str) != 17)
|
||||
err(EINVAL, "MAC address is the wrong length");
|
||||
|
||||
memset(mac_buf, 0, sizeof(mac_buf));
|
||||
|
||||
for (mac_byte = 0; mac_byte < 6; mac_byte++)
|
||||
set_mac_byte(mac_byte);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user