# HG changeset patch # User Kim Alvefur # Date 1395254886 -3600 # Node ID 920ac9a8480be91355ece2e0cf76a15d52b2ea47 # Parent b9213ddb860f51e68634962b37c2ad449c4cd12a mod_s2s_auth_dane: Fix tb when no hostname sent by remote diff -r b9213ddb860f -r 920ac9a8480b mod_s2s_auth_dane/mod_s2s_auth_dane.lua --- a/mod_s2s_auth_dane/mod_s2s_auth_dane.lua Wed Mar 19 19:39:03 2014 +0100 +++ b/mod_s2s_auth_dane/mod_s2s_auth_dane.lua Wed Mar 19 19:48:06 2014 +0100 @@ -50,7 +50,7 @@ local function dane_lookup(host_session, cb, a,b,c,e) if host_session.dane ~= nil then return end if host_session.direction == "incoming" then - local name = idna_to_ascii(host_session.from_host); + local name = host_session.from_host and idna_to_ascii(host_session.from_host); if not name then return end host_session.dane = dns_lookup(function (answer) if not answer.secure then