diff options
author | nelsonb%netscape.com <devnull@localhost> | 2005-04-09 00:42:01 +0000 |
---|---|---|
committer | nelsonb%netscape.com <devnull@localhost> | 2005-04-09 00:42:01 +0000 |
commit | 670835defec066ef65e3c128f46d291241a700d0 (patch) | |
tree | 3fea17d15adadddc3fc34f790ab9bbba6540c79a | |
parent | 18ae738833ffed5df36bb5e6660d91dee4dd94ec (diff) | |
download | nss-hg-670835defec066ef65e3c128f46d291241a700d0.tar.gz |
Don't crash in NSC_CopyObject after failing to copy a token object.
Bug 289529. r=relyea.
-rw-r--r-- | security/nss/lib/softoken/pkcs11.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/nss/lib/softoken/pkcs11.c b/security/nss/lib/softoken/pkcs11.c index 138e6e711..91c02254f 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); |