forked from wolfSSL/wolfssl
Fixed CID 591810.
This commit is contained in:
@@ -388,6 +388,7 @@ int wc_FileLoad(const char* fname, unsigned char** buf, size_t* bufLen,
|
|||||||
|
|
||||||
if (XFSEEK(f, 0, XSEEK_END) != 0) {
|
if (XFSEEK(f, 0, XSEEK_END) != 0) {
|
||||||
WOLFSSL_MSG("wc_LoadFile file seek error");
|
WOLFSSL_MSG("wc_LoadFile file seek error");
|
||||||
|
XFCLOSE(f);
|
||||||
return BAD_PATH_ERROR;
|
return BAD_PATH_ERROR;
|
||||||
}
|
}
|
||||||
fileSz = XFTELL(f);
|
fileSz = XFTELL(f);
|
||||||
|
Reference in New Issue
Block a user