{
        char *matched = NULL;
 
-       if (ipaddrlen && X509_check_ip(peer_cert, ipaddr, ipaddrlen, 0)) {
+       if (ipaddrlen && X509_check_ip(peer_cert, ipaddr, ipaddrlen, 0) == 1) {
                if (vpninfo->verbose >= PRG_DEBUG) {
                        char host[80];
                        int family;
                }
                return 0;
        }
-       if (X509_check_host(peer_cert, vpninfo->hostname, 0, 0, &matched)) {
+       if (X509_check_host(peer_cert, vpninfo->hostname, 0, 0, &matched) == 1) {
                vpn_progress(vpninfo, PRG_DEBUG,
                             _("Matched peer certificate subject name '%s'\n"),
                             matched);
 
        <li>Add bash completion support.</li>
        <li>Give more helpful error in case of Pulse servers asking for TNCC.</li>
        <li>Sanitize non-canonical Legacy IP network addresses (<a href="https://gitlab.com/openconnect/openconnect/merge_requests/97">!97</a>)</li>
+       <li>Fix OpenSSL validation for trusted but invalid certificates (CVE-2020-12105).</li>
      </ul><br/>
   </li>
   <li><b><a href="ftp://ftp.infradead.org/pub/openconnect/openconnect-8.08.tar.gz">OpenConnect v8.08</a></b>