summaryrefslogtreecommitdiffstats
path: root/apps/spkac.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-01-07 10:48:23 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-01-07 10:48:23 +0000
commita00c3c4019a4bc0fa938b7dd3c0cd8e95cdc6943 (patch)
tree97dc675154f89679d944819529935c988924a301 /apps/spkac.c
parentf4677b79609a17b125c46a8bc9899be94ac65919 (diff)
Properly check EVP_VerifyFinal() and similar return values
(CVE-2008-5077). Submitted by: Ben Laurie, Bodo Moeller, Google Security Team
Diffstat (limited to 'apps/spkac.c')
-rw-r--r--apps/spkac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/spkac.c b/apps/spkac.c
index ae2d88694f..0e01ea9947 100644
--- a/apps/spkac.c
+++ b/apps/spkac.c
@@ -285,7 +285,7 @@ bad:
pkey = NETSCAPE_SPKI_get_pubkey(spki);
if(verify) {
i = NETSCAPE_SPKI_verify(spki, pkey);
- if(i) BIO_printf(bio_err, "Signature OK\n");
+ if (i > 0) BIO_printf(bio_err, "Signature OK\n");
else {
BIO_printf(bio_err, "Signature Failure\n");
ERR_print_errors(bio_err);