From 3fbb87334069fc85a992a05a51753d91239955c8 Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 10 Aug 2023 09:49:16 +0200 Subject: Use ASN1_STRING_...-functions where possible --- qmail-remote.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qmail-remote.c b/qmail-remote.c index edfdb60..c2ab562 100644 --- a/qmail-remote.c +++ b/qmail-remote.c @@ -666,7 +666,7 @@ static int tls_init(struct ip_mx *current_mx) { const GENERAL_NAME *gn = sk_GENERAL_NAME_value(gens, i); if (gn->type == GEN_DNS) - if (match_mx_host(mx_host, gn->d.ia5->data, gn->d.ia5->length)) break; + if (match_mx_host(mx_host, ASN1_STRING_get0_data(gn->d.dNSName), ASN1_STRING_length(gn->d.dNSName))) break; } sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free); } -- cgit v1.2.3