mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
ID: 3608022 - 'lib/ipmi_fru.c' - unsigned errors
Commit removes 'size' check from ipmi_fru_get_multirec_from_file() as an unsigned value can't be less than zero(0). This error has been introduced by ID#3600911. Reported-by: Ales Ledvinka
This commit is contained in:
parent
3ea41bda4b
commit
7a74ab32a8
@ -3856,9 +3856,6 @@ ipmi_fru_get_multirec_from_file(char * pFileName, uint8_t * pBufArea,
|
||||
{
|
||||
FILE * pFile;
|
||||
uint32_t len = 0;
|
||||
if (size < 0) {
|
||||
return (-1);
|
||||
}
|
||||
if (pFileName == NULL) {
|
||||
lprintf(LOG_ERR, "Invalid file name given.");
|
||||
return (-1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user