aboutsummaryrefslogtreecommitdiffstats
path: root/apps/x509.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-01-07 23:44:27 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-01-07 23:44:27 +0000
commitbab534057b855a7dbf98261d494897b3542bd9d5 (patch)
tree8f339a962fce59f79aca9d68eee75304b885d551 /apps/x509.c
parentcec2af75102df52c2f270b3751e3487f47fccb6c (diff)
downloadopenssl-bab534057b855a7dbf98261d494897b3542bd9d5.tar.gz
Updatde from stable branch.
Diffstat (limited to 'apps/x509.c')
-rw-r--r--apps/x509.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/x509.c b/apps/x509.c
index e08fdac8b9..f1b1c6f7b6 100644
--- a/apps/x509.c
+++ b/apps/x509.c
@@ -1130,7 +1130,7 @@ static int x509_certify(X509_STORE *ctx, char *CAfile, const EVP_MD *digest,
/* NOTE: this certificate can/should be self signed, unless it was
* a certificate request in which case it is not. */
X509_STORE_CTX_set_cert(&xsc,x);
- if (!reqfile && !X509_verify_cert(&xsc))
+ if (!reqfile && X509_verify_cert(&xsc) <= 0)
goto end;
if (!X509_check_private_key(xca,pkey))