# HG changeset patch # User Kim Alvefur # Date 1464269492 -7200 # Node ID 5e0102a07fdc21191374d916215ca70682e62fc9 # Parent a90c7d7e741323f81d8252a189360de36fdff170 mod_s2s_auth_dane: Make sure dane field has correct type diff -r a90c7d7e7413 -r 5e0102a07fdc mod_s2s_auth_dane/mod_s2s_auth_dane.lua --- a/mod_s2s_auth_dane/mod_s2s_auth_dane.lua Tue May 24 11:59:25 2016 +0200 +++ b/mod_s2s_auth_dane/mod_s2s_auth_dane.lua Thu May 26 15:31:32 2016 +0200 @@ -227,7 +227,7 @@ module:hook("s2s-authenticated", function(event) local session = event.session; - if session.dane and next(session.dane) ~= nil and not session.secure then + if session.dane and type(session.dane) == "table" and next(session.dane) ~= nil and not session.secure then -- TLSA record but no TLS, not ok. -- TODO Optional? -- Bogus replies should trigger this path