summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr/src/lib/pkcs11/pkcs11_softtoken/common/softKeysUtil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/lib/pkcs11/pkcs11_softtoken/common/softKeysUtil.c b/usr/src/lib/pkcs11/pkcs11_softtoken/common/softKeysUtil.c
index 42eff40de7..667a220451 100644
--- a/usr/src/lib/pkcs11/pkcs11_softtoken/common/softKeysUtil.c
+++ b/usr/src/lib/pkcs11/pkcs11_softtoken/common/softKeysUtil.c
@@ -946,8 +946,6 @@ common:
return (rv);
}
- *phKey = secret_key->handle;
-
/* Validate the key type and key length */
rv = soft_key_derive_check_length(secret_key, hash_size);
if (rv != CKR_OK) {
@@ -1065,6 +1063,8 @@ common:
soft_delete_token_object(secret_key, B_FALSE, B_FALSE);
}
+ *phKey = secret_key->handle;
+
return (rv);
}