summaryrefslogtreecommitdiffstats
path: root/crypto/x509
diff options
context:
space:
mode:
authorViktor Dukhovni <viktor@twosigma.com>2014-06-23 13:06:24 -0400
committerDr. Stephen Henson <steve@openssl.org>2014-06-23 16:26:34 +0100
commiteef1827f89ebb82d3bcb5391fa15e05061bab4b2 (patch)
tree51a54baae8c00d5c32f358197312841c4ed01b5a /crypto/x509
parent90b70a6a6b4df267fea2724c7af37d93366a1fec (diff)
One more typo when changing !result to result <= 0
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 e588b38f9a..b0e1dc036a 100644
--- a/crypto/x509/x509_vfy.c
+++ b/crypto/x509/x509_vfy.c
@@ -763,7 +763,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;