[NSS] Bug 1899402 - Correctly destroy bulkkey in error scenario. r=jschanck

Differential Revision: https://phabricator.services.mozilla.com/D223837

--HG--
extra : rebase_source : d06a6bb8d51bb844c814c5ee682a1b24de3e2e69
This commit is contained in:
Kai Engert 2024-09-26 21:22:17 +02:00 committed by roytam1
commit e825209039

View file

@ -542,6 +542,7 @@ sec_pkcs7_decoder_start_decrypt(SEC_PKCS7DecoderContext *p7dcx, int depth,
* We are done with (this) bulkkey now.
*/
PK11_FreeSymKey(bulkkey);
bulkkey = NULL;
if (decryptobj == NULL) {
p7dcx->error = PORT_GetError();