import from UXP: [NSS] Bug 1899402 - Correctly destroy bulkkey in error scenario. r=jschanck (e8252090)

This commit is contained in:
2024-12-21 10:07:02 +08:00
parent 345ec9e16f
commit fc72ab9114
+1
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();