summaryrefslogtreecommitdiffstats
path: root/mutt_ssl.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-08-06 09:58:01 +0200
committerMatthias Andree <matthias.andree@gmx.de>2010-08-06 09:58:01 +0200
commitd9f784c11e9c7666275e874050fc74a5dfb15a11 (patch)
tree88bb26a7f06ab4f178aec88c3eb7c7ca21711d3f /mutt_ssl.c
parent814f83d5a2788ed5a0c0b6a2deedb4ed4be2e792 (diff)
Unbreak X.509 SubjAltName checks,
regression in 6016:dc09812e63a3 that calls strlen on an SSL sk rather than its string payload. closes #3426
Diffstat (limited to 'mutt_ssl.c')
-rw-r--r--mutt_ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mutt_ssl.c b/mutt_ssl.c
index 1a45672d..92442267 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))))
{