summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2018-04-16 18:09:02 +0200
committermanuel <manuel@mausz.at>2018-04-16 18:09:02 +0200
commitd382146c1145dcd3a4108f1b753fcb1250fd9750 (patch)
tree2f9f9c667699af00df21dd338d336a1c457e510e
parent3ddb39faf72f52fe4089e40cd9fe75cb11965fe1 (diff)
downloadqmail-d382146c1145dcd3a4108f1b753fcb1250fd9750.tar.gz
qmail-d382146c1145dcd3a4108f1b753fcb1250fd9750.tar.bz2
qmail-d382146c1145dcd3a4108f1b753fcb1250fd9750.zip
work around a libval bug
-rw-r--r--qmail-remote.c3
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 }