From 7bfe134a1983a88dcf50d2f33d0c69739d225eb9 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 7 Mar 2026 02:35:03 +0000 Subject: 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 --- util/nvmutil/nvmutil.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 3c59cd0c..fbf6e303 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -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); -- cgit v1.2.1