From 3ed961a03978688977daef38ba924bde64fc1bbb Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Fri, 6 Aug 2010 09:58:01 +0200 Subject: [PATCH] Unbreak X.509 SubjAltName checks, regression in 6016:dc09812e63a3 that calls strlen on an SSL sk rather than its string payload. closes #3426 --- mutt_ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutt_ssl.c b/mutt_ssl.c index 1a45672db..924422674 100644 --- a/mutt_ssl.c +++ b/mutt_ssl.c @@ -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)))) { -- 2.40.0