From e0a7c7532201644e35c2f819de8506b46ba92d21 Mon Sep 17 00:00:00 2001 From: "nelsonb%netscape.com" Date: Sat, 9 Apr 2005 00:42:01 +0000 Subject: [PATCH] Don't crash in NSC_CopyObject after failing to copy a token object. Bug 289529. r=relyea. --- security/nss/lib/softoken/pkcs11.c | 1 + 1 file changed, 1 insertion(+) diff --git a/security/nss/lib/softoken/pkcs11.c b/security/nss/lib/softoken/pkcs11.c index 138e6e71173a..91c02254f138 100644 --- a/security/nss/lib/softoken/pkcs11.c +++ b/security/nss/lib/softoken/pkcs11.c @@ -3769,6 +3769,7 @@ CK_RV NSC_CopyObject(CK_SESSION_HANDLE hSession, if (crv != CKR_OK) { sftk_FreeObject(destObject); sftk_FreeSession(session); + return crv; } crv = sftk_handleObject(destObject,session);