]> granicus.if.org Git - neomutt/commitdiff
Unbreak X.509 SubjAltName checks,
authorMatthias Andree <matthias.andree@gmx.de>
Fri, 6 Aug 2010 07:58:01 +0000 (09:58 +0200)
committerMatthias Andree <matthias.andree@gmx.de>
Fri, 6 Aug 2010 07:58:01 +0000 (09:58 +0200)
regression in 6016:dc09812e63a3 that calls strlen on an SSL sk rather than
its string payload.

closes #3426

mutt_ssl.c

index 1a45672db789ce01055f4ea99d128194a957080f..924422674fc15800fcccc505d41391a2674f67c3 100644 (file)
@@ -760,7 +760,7 @@ static int check_host (X509 *x509cert, const char *hostname, char *err, size_t e
       subj_alt_name = sk_GENERAL_NAME_value(subj_alt_names, i);
       if (subj_alt_name->type == GEN_DNS)
       {
-       if (mutt_strlen(subj_alt_name) == subj_alt_name->d.ia5->length  &&
+       if (mutt_strlen((char *)subj_alt_name->d.ia5->data) == subj_alt_name->d.ia5->length  &&
            (match_found = hostname_match(hostname_ascii,
                                          (char *)(subj_alt_name->d.ia5->data))))
        {