mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Uninitialized variable because we don't check return value
Warning 544870.5627882
This commit is contained in:
@ -11489,8 +11489,13 @@ int wc_PKCS7_EncodeAuthEnvelopedData(PKCS7* pkcs7, byte* output,
|
|||||||
return MEMORY_E;
|
return MEMORY_E;
|
||||||
}
|
}
|
||||||
|
|
||||||
FlattenAttributes(pkcs7, flatAuthAttribs, authAttribs,
|
ret = FlattenAttributes(pkcs7, flatAuthAttribs, authAttribs,
|
||||||
authAttribsCount);
|
authAttribsCount);
|
||||||
|
if (ret != 0) {
|
||||||
|
wc_PKCS7_FreeEncodedRecipientSet(pkcs7);
|
||||||
|
XFREE(flatAuthAttribs, pkcs7->heap, DYNAMIC_TYPE_PKCS7);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
authAttribsSetSz = SetImplicit(ASN_SET, 1, authAttribsSz,
|
authAttribsSetSz = SetImplicit(ASN_SET, 1, authAttribsSz,
|
||||||
authAttribSet);
|
authAttribSet);
|
||||||
|
Reference in New Issue
Block a user