mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
pkcs12.c wc_d2i_PKCS12_fp(): mollify Visual Studio (false positives C4701 and C4703).
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user