# HG changeset patch # User Kim Alvefur # Date 1395255117 -3600 # Node ID 478b3288192f0e9d8856e953ad93ba2afb1653be # Parent 920ac9a8480be91355ece2e0cf76a15d52b2ea47 mod_s2s_auth_dnssec_srv: Fix tb when no hostname sent by remote diff -r 920ac9a8480b -r 478b3288192f mod_s2s_auth_dnssec_srv/mod_s2s_auth_dnssec_srv.lua --- a/mod_s2s_auth_dnssec_srv/mod_s2s_auth_dnssec_srv.lua Wed Mar 19 19:48:06 2014 +0100 +++ b/mod_s2s_auth_dnssec_srv/mod_s2s_auth_dnssec_srv.lua Wed Mar 19 19:51:57 2014 +0100 @@ -40,7 +40,7 @@ function module.add_host(module) module:hook("s2s-stream-features", function(event) local host_session = event.origin; - local name = to_ascii(host_session.from_host); + local name = host_session.from_host and to_ascii(host_session.from_host); if not name then return end dns_lookup(function (answer) if host_session.dane ~= nil then return end