diff options
| -rw-r--r-- | qmail-remote.c | 3 |
1 files changed, 3 insertions, 0 deletions
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() | |||
| 459 | .proto = DANE_PARAM_PROTO_TCP | 459 | .proto = DANE_PARAM_PROTO_TCP |
| 460 | }; | 460 | }; |
| 461 | dane_retval = val_getdaneinfo(dane_context, partner_fqdn, &dane_params, &dane_status); | 461 | dane_retval = val_getdaneinfo(dane_context, partner_fqdn, &dane_params, &dane_status); |
| 462 | /* work around a bug if no error but no also no records */ | ||
| 463 | if (dane_retval == VAL_DANE_NOERROR && dane_status == NULL) | ||
| 464 | dane_retval = VAL_DANE_IGNORE_TLSA; | ||
| 462 | if (dane_retval == VAL_DANE_NOERROR) | 465 | if (dane_retval == VAL_DANE_NOERROR) |
| 463 | tls_required = 1; | 466 | tls_required = 1; |
| 464 | } | 467 | } |
