diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2010-08-06 09:58:01 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2010-08-06 09:58:01 +0200 |
commit | d9f784c11e9c7666275e874050fc74a5dfb15a11 (patch) | |
tree | 88bb26a7f06ab4f178aec88c3eb7c7ca21711d3f | |
parent | 814f83d5a2788ed5a0c0b6a2deedb4ed4be2e792 (diff) |
Unbreak X.509 SubjAltName checks,
regression in 6016:dc09812e63a3 that calls strlen on an SSL sk rather than
its string payload.
closes #3426
-rw-r--r-- | mutt_ssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)))) { |