Print a warning in case we cannot add more brandinfo because
we would overflow the MAX_BRANDS sized array. Reviewed by: kib MFC After: 1 month
This commit is contained in:
parent
e0ede152d0
commit
a0d8f55f8a
@ -180,8 +180,11 @@ __elfN(insert_brand_entry)(Elf_Brandinfo *entry)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (i == MAX_BRANDS)
|
||||
if (i == MAX_BRANDS) {
|
||||
printf("WARNING: %s: could not insert brandinfo entry: %p\n",
|
||||
__func__, entry);
|
||||
return (-1);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user