From d382146c1145dcd3a4108f1b753fcb1250fd9750 Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 16 Apr 2018 18:09:02 +0200 Subject: work around a libval bug --- qmail-remote.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qmail-remote.c') diff --git a/qmail-remote.c b/qmail-remote.c index 6c7fba0..d2412aa 100644 --- a/qmail-remote.c +++ b/qmail-remote.c @@ -459,6 +459,9 @@ int tls_init() .proto = DANE_PARAM_PROTO_TCP }; dane_retval = val_getdaneinfo(dane_context, partner_fqdn, &dane_params, &dane_status); + /* work around a bug if no error but no also no records */ + if (dane_retval == VAL_DANE_NOERROR && dane_status == NULL) + dane_retval = VAL_DANE_IGNORE_TLSA; if (dane_retval == VAL_DANE_NOERROR) tls_required = 1; } -- cgit v1.2.3