Code review feedback

This commit is contained in:
Kareem
2026-06-15 10:14:03 -07:00
parent df81ef1fe3
commit dba0ba5a07
+4 -2
View File
@@ -74,8 +74,10 @@ int wc_ChaCha20Poly1305_Encrypt(
inPlaintextLen);
if (ret == 0)
ret = wc_ChaCha20Poly1305_Final(aead, outAuthTag);
ForceZero(aead, sizeof(ChaChaPoly_Aead));
#ifdef WOLFSSL_SMALL_STACK
if (aead != NULL)
#endif
ForceZero(aead, sizeof(ChaChaPoly_Aead));
WC_FREE_VAR_EX(aead, NULL, DYNAMIC_TYPE_TMP_BUFFER);
return ret;