From eef1827f89ebb82d3bcb5391fa15e05061bab4b2 Mon Sep 17 00:00:00 2001 From: Viktor Dukhovni Date: Mon, 23 Jun 2014 13:06:24 -0400 Subject: [PATCH] One more typo when changing !result to result <= 0 --- crypto/x509/x509_vfy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1