Fix double free of item value that is in an arena.
authorthayes%netscape.com
Fri, 16 Jun 2000 23:26:16 +0000
changeset 379 464404bc0ced4caccc6fa88aaabc09632eca3a34
parent 373 27c392eef49f48b46488770a1bab41854baff1a2
child 381 d748e5f9526290f415abb5815391bde83c5b45f8
push idunknown
push userunknown
push dateunknown
Fix double free of item value that is in an arena.
security/nss/lib/pk11wrap/pk11sdr.c
--- a/security/nss/lib/pk11wrap/pk11sdr.c
+++ b/security/nss/lib/pk11wrap/pk11sdr.c
@@ -272,17 +272,17 @@ PK11SDR_Decrypt(SECItem *data, SECItem *
 
   PK11_Finalize(ctx);
 
   /* Remove the padding */
   rv = unpadBlock(&paddedResult, PK11_GetBlockSize(type, 0), result);
   if (rv) goto loser;
 
 loser:
-  SECITEM_ZfreeItem(&paddedResult, PR_FALSE);
+  /* SECITEM_ZfreeItem(&paddedResult, PR_FALSE); */
   if (arena) PORT_FreeArena(arena, PR_TRUE);
   if (ctx) PK11_DestroyContext(ctx, PR_TRUE);
   if (key) PK11_FreeSymKey(key);
   if (params) SECITEM_ZfreeItem(params, PR_TRUE);
   if (slot) PK11_FreeSlot(slot);
 
   return rv;
 }