summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/mock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/mock.c b/common/mock.c
index ab223f8..1b0aea7 100644
--- a/common/mock.c
+++ b/common/mock.c
@@ -2978,7 +2978,7 @@ mock_C_VerifyFinal (CK_SESSION_HANDLE session,
len = snprintf (buffer, sizeof (buffer), "%lu", sess->hash_count);
length = sess->n_sign_prefix + len;
- if (!signature || signature_len != length)
+ if (signature_len != length)
return CKR_SIGNATURE_LEN_RANGE;
if (memcmp (signature, sess->sign_prefix, sess->n_sign_prefix) != 0 ||