diff options
| -rw-r--r-- | util/nvmutil/nvmutil.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 2dd3028f..585b4cee 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -285,6 +285,8 @@ parse_mac_string(void) if (strnlen(mac, 20) != 17) err(EINVAL, "Invalid MAC address string length"); + (void) memset(macbuf, 0, sizeof(macbuf)); + for (mac_pos = 0; mac_pos < 16; mac_pos += 3) set_mac_byte(mac_pos, &total); |
