pkcs12.c wc_d2i_PKCS12_fp(): mollify Visual Studio (false positives C4701 and C4703).

This commit is contained in:
Daniel Pouzzner
2021-12-14 18:33:24 -06:00
parent 242eb2dcf1
commit a773cdfd5d

View File

@@ -720,8 +720,8 @@ int wc_d2i_PKCS12(const byte* der, word32 derSz, WC_PKCS12* pkcs12)
int wc_d2i_PKCS12_fp(const char* file, WC_PKCS12** pkcs12)
{
int ret = 0;
byte* buf;
size_t bufSz;
byte* buf = NULL;
size_t bufSz = 0;
WC_PKCS12* tmpPkcs12 = NULL;
int callerAlloc = 1;
@@ -730,7 +730,6 @@ int wc_d2i_PKCS12_fp(const char* file, WC_PKCS12** pkcs12)
if (pkcs12 == NULL) {
WOLFSSL_MSG("pkcs12 parameter NULL.");
ret = BAD_FUNC_ARG;
buf = NULL;
}
if (ret == 0)