Fixed CID 591810.

This commit is contained in:
Martin Kinčl
2021-03-04 01:02:11 +01:00
parent b383d93274
commit d5cd9c4a7f

View File

@ -388,6 +388,7 @@ int wc_FileLoad(const char* fname, unsigned char** buf, size_t* bufLen,
if (XFSEEK(f, 0, XSEEK_END) != 0) {
WOLFSSL_MSG("wc_LoadFile file seek error");
XFCLOSE(f);
return BAD_PATH_ERROR;
}
fileSz = XFTELL(f);