From 4ecac48c68c1f4d5a3f54c36f22fe74b41419c34 Mon Sep 17 00:00:00 2001 From: Zdenek Styblik Date: Thu, 9 Jun 2016 12:01:29 +0200 Subject: [PATCH] Revert "ID:335 - Check return value of fseek(), prevent segfault" This reverts commit 6d8ad594ccd582ac0a004e55c8459409376fc264 because of wrong e-mail address in commit. --- lib/ipmi_hpmfwupg.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/ipmi_hpmfwupg.c b/lib/ipmi_hpmfwupg.c index bbcffc0..9cbd4ff 100644 --- a/lib/ipmi_hpmfwupg.c +++ b/lib/ipmi_hpmfwupg.c @@ -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) {