aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-03-03 18:42:54 +0100
committerKim Alvefur <zash@zash.se>2021-03-03 18:42:54 +0100
commit60ec880c48acee50b8f057a78bdf371963a7a714 (patch)
treebf500a5174d98c1f5f2a4429f3843a27b82b90b2
parent8673a99a09f5e18537ffca296c48e0c94451fc16 (diff)
downloadprosody-60ec880c48acee50b8f057a78bdf371963a7a714.tar.gz
prosody-60ec880c48acee50b8f057a78bdf371963a7a714.zip
net.resolvers.basic: Don't enable DANE with zero TLSA records
Turns out it doesn't work with zero.
-rw-r--r--net/resolvers/basic.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/resolvers/basic.lua b/net/resolvers/basic.lua
index 2153a641..220cb0c8 100644
--- a/net/resolvers/basic.lua
+++ b/net/resolvers/basic.lua
@@ -37,7 +37,7 @@ function methods:next(cb)
if n > 0 then return; end
self.targets = targets;
if self.extra and self.extra.use_dane then
- if secure then
+ if secure and tlsa[1] then
self.extra.tlsa = tlsa;
self.extra.dane_hostname = self.hostname;
else