# HG changeset patch # User Kim Alvefur # Date 1399556638 -7200 # Node ID 8626abe100e290d6ea69c0ae494d809763d5649e # Parent f4e497a53c6e2684aa4aec726f22b14b114d903a mod_s2s_auth_dane: Fix traceback if session.srv_hosts is nil diff -r f4e497a53c6e -r 8626abe100e2 mod_s2s_auth_dane/mod_s2s_auth_dane.lua --- a/mod_s2s_auth_dane/mod_s2s_auth_dane.lua Wed May 07 17:08:47 2014 +0200 +++ b/mod_s2s_auth_dane/mod_s2s_auth_dane.lua Thu May 08 15:43:58 2014 +0200 @@ -231,7 +231,7 @@ end else if session.cert_chain_status == "valid" and session.cert_identity_status ~= "valid" - and session.srv_hosts.answer and session.srv_hosts.answer.secure then + and session.srv_hosts and session.srv_hosts.answer and session.srv_hosts.answer.secure then local srv_hosts, srv_choice, srv_target = session.srv_hosts, session.srv_choice; for i = srv_choice or 1, srv_choice or #srv_hosts do srv_target = nameprep(idna_to_unicode(session.srv_hosts[i].target:gsub("%.?$","")));