mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-07-04 11:43:35 +00:00
Revert "ID:335 - Check return value of fseek(), prevent segfault"
This reverts commit 6d8ad594cc
because of wrong
e-mail address in commit.
This commit is contained in:
@ -1399,12 +1399,7 @@ HpmfwupgGetBufferFromFile(char *imageFilename,
|
||||
return HPMFWUPG_ERROR;
|
||||
}
|
||||
/* Get the raw data in file */
|
||||
ret = fseek(pImageFile, 0, SEEK_END);
|
||||
if (ret != 0) {
|
||||
lprintf(LOG_ERR, "Failed to seek in the image file '%s'",
|
||||
imageFilename);
|
||||
return HPMFWUPG_ERROR;
|
||||
}
|
||||
fseek(pImageFile, 0, SEEK_END);
|
||||
pFwupgCtx->imageSize = ftell(pImageFile);
|
||||
pFwupgCtx->pImageData = malloc(sizeof(unsigned char)*pFwupgCtx->imageSize);
|
||||
if (pFwupgCtx->pImageData == NULL) {
|
||||
|
Reference in New Issue
Block a user