summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorPankaj <pankaj.s01@samsung.com>2015-11-04 05:03:00 +0000
committerStef Walter <stefw@redhat.com>2015-11-23 12:41:37 +0100
commit981f5358988a4c7044aeddd5bd783c28b2665410 (patch)
treeed1fc72f9b71b513e028bf63c8d3c2f60c0d939e /common
parent957c6d8c610b71665573564f2299d9aca86d2483 (diff)
p11-kit: Fix redundant check for 'signature' is always 'true'
https://bugs.freedesktop.org/show_bug.cgi?id=92807
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 ||