summaryrefslogtreecommitdiffstats
path: root/crypto/x509
diff options
context:
space:
mode:
authorViktor Dukhovni <viktor@twosigma.com>2014-06-23 13:06:24 -0400
committerViktor Dukhovni <ietf-dane@dukhovni.org>2014-07-07 19:19:13 +1000
commit41e3ebd5abacfdf98461cdeb6fa97a4175b7aad3 (patch)
treef6a6cad013325d1fac26c84569b0cca7f858d5cd /crypto/x509
parent9624b50d51de25bb2e3a72e81fe45032d80ea5c2 (diff)
One more typo when changing !result to result <= 0
(cherry picked from commit eef1827f89ebb82d3bcb5391fa15e05061bab4b2)
Diffstat (limited to 'crypto/x509')
-rw-r--r--crypto/x509/x509_vfy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c
index 4dac6ff3e7..32dd135846 100644
--- a/crypto/x509/x509_vfy.c
+++ b/crypto/x509/x509_vfy.c
@@ -739,7 +739,7 @@ static int check_id(X509_STORE_CTX *ctx)
X509_VERIFY_PARAM *vpm = ctx->param;
X509_VERIFY_PARAM_ID *id = vpm->id;
X509 *x = ctx->cert;
- if (id->hosts && !check_hosts(x, id) <= 0)
+ if (id->hosts && check_hosts(x, id) <= 0)
{
if (!check_id_error(ctx, X509_V_ERR_HOSTNAME_MISMATCH))
return 0;