From 981f5358988a4c7044aeddd5bd783c28b2665410 Mon Sep 17 00:00:00 2001 From: Pankaj Date: Wed, 4 Nov 2015 05:03:00 +0000 Subject: p11-kit: Fix redundant check for 'signature' is always 'true' https://bugs.freedesktop.org/show_bug.cgi?id=92807 --- common/mock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 || -- cgit v1.1