util/nvtutil: fix out of bounds error
the error would have never been triggered, because it never went over 11, but if this code were to be copied elsewhere, it would be problematicfsdg20230625
parent
04ced693e8
commit
a6d0112d86
|
@ -220,7 +220,7 @@ hextonum(char chs)
|
||||||
static int macfd;
|
static int macfd;
|
||||||
static uint8_t *rmac = NULL;
|
static uint8_t *rmac = NULL;
|
||||||
static int random;
|
static int random;
|
||||||
if (random > 15) {
|
if (random > 11) {
|
||||||
close(macfd);
|
close(macfd);
|
||||||
free(rmac);
|
free(rmac);
|
||||||
rmac = NULL;
|
rmac = NULL;
|
||||||
|
|
Loading…
Reference in New Issue