aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-08 00:54:56 +0100
committerKim Alvefur <zash@zash.se>2019-11-08 00:54:56 +0100
commitf86ea56d52295dea0867707cf163d9f3d8f4acc5 (patch)
tree42b2a7263a6a53e0c7cf34c045835cc704d9c33e /net
parent9b5d4cf8750c90b6eb90d985d98807b63910c7d3 (diff)
downloadprosody-f86ea56d52295dea0867707cf163d9f3d8f4acc5.tar.gz
prosody-f86ea56d52295dea0867707cf163d9f3d8f4acc5.zip
net.resolvers: Fix traceback from hostname failing IDNA
Related to #1426
Diffstat (limited to 'net')
-rw-r--r--net/resolvers/basic.lua1
-rw-r--r--net/resolvers/service.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/net/resolvers/basic.lua b/net/resolvers/basic.lua
index cafef58b..f37e74a2 100644
--- a/net/resolvers/basic.lua
+++ b/net/resolvers/basic.lua
@@ -21,6 +21,7 @@ function methods:next(cb)
if not self.hostname then
-- FIXME report IDNA error
cb(nil);
+ return;
end
local targets = {};
diff --git a/net/resolvers/service.lua b/net/resolvers/service.lua
index bb255c33..34f14cba 100644
--- a/net/resolvers/service.lua
+++ b/net/resolvers/service.lua
@@ -28,6 +28,7 @@ function methods:next(cb)
if not self.hostname then
-- FIXME report IDNA error
cb(nil);
+ return;
end
local targets = {};