Fix typo in last commit
authorViktor Dukhovni <openssl-users@dukhovni.org>
Mon, 23 Jun 2014 00:39:52 +0000 (20:39 -0400)
committerViktor Dukhovni <ietf-dane@dukhovni.org>
Mon, 7 Jul 2014 09:19:13 +0000 (19:19 +1000)
(cherry picked from commit 90b70a6a6b4df267fea2724c7af37d93366a1fec)

crypto/x509/x509_vfy.c

index af1a8454df08f299ea0e96c84ff3773d1e67e67c..4dac6ff3e78a096f0f494a2b6bd89121951acba8 100644 (file)
@@ -728,7 +728,7 @@ static int check_hosts(X509 *x, X509_VERIFY_PARAM_ID *id)
        for (i = 0; i < n; ++i)
                {
                name = (unsigned char *)sk_OPENSSL_STRING_value(id->hosts, i);
-               if (X509_check_host(x, name, 0, id->hostflags)) > 0)
+               if (X509_check_host(x, name, 0, id->hostflags) > 0)
                        return 1;
                }
        return n == 0;