Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Unified Diff: nss/lib/pkcs7/p7common.c

Issue 1504923011: Update NSS to 3.21 RTM and NSPR to 4.11 RTM (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/nss
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: nss/lib/pkcs7/p7common.c
diff --git a/nss/lib/pkcs7/p7common.c b/nss/lib/pkcs7/p7common.c
index 9a44f20b388f3c46b4b90d47f49f669403c07ba3..10015ce25b1fdad99826f644ac028616d9b051c9 100644
--- a/nss/lib/pkcs7/p7common.c
+++ b/nss/lib/pkcs7/p7common.c
@@ -408,7 +408,6 @@ SEC_PKCS7EncryptContents(PLArenaPool *poolp,
void *wincx)
{
SECAlgorithmID *algid = NULL;
- SECItem * result = NULL;
SECItem * src;
SECItem * dest;
SECItem * blocked_data = NULL;
@@ -524,9 +523,6 @@ loser:
if(blocked_data != NULL)
SECITEM_ZfreeItem(blocked_data, PR_TRUE);
- if(result != NULL)
- SECITEM_ZfreeItem(result, PR_TRUE);
-
if(rv == SECFailure)
PORT_ArenaRelease(poolp, mark);
else
@@ -566,7 +562,7 @@ SEC_PKCS7DecryptContents(PLArenaPool *poolp,
{
SECAlgorithmID *algid = NULL;
SECStatus rv = SECFailure;
- SECItem *result = NULL, *dest, *src;
+ SECItem *dest, *src;
void *mark;
PK11SymKey *eKey = NULL;
@@ -645,9 +641,6 @@ SEC_PKCS7DecryptContents(PLArenaPool *poolp,
loser:
/* let success fall through */
- if(result != NULL)
- SECITEM_ZfreeItem(result, PR_TRUE);
-
if(rv == SECFailure)
PORT_ArenaRelease(poolp, mark);
else

Powered by Google App Engine
This is Rietveld 408576698