Changeset

1409:151aa00559d1

mod_s2s_auth_dane: Fix logic precedence issue
author Kim Alvefur <zash@zash.se>
date Wed, 07 May 2014 17:07:10 +0200
parents 1408:ed2a9c00b5c4
children 1410:f4e497a53c6e
files mod_s2s_auth_dane/mod_s2s_auth_dane.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_s2s_auth_dane/mod_s2s_auth_dane.lua	Wed May 07 16:18:05 2014 +0200
+++ b/mod_s2s_auth_dane/mod_s2s_auth_dane.lua	Wed May 07 17:07:10 2014 +0200
@@ -84,7 +84,7 @@
 		if not ( srv_hosts and srv_hosts.answer and srv_hosts.answer.secure )  then return end
 		local srv_choice = srv_hosts[host_session.srv_choice];
 		host_session.dane = dns_lookup(function(answer)
-			if answer and (answer.secure and #answer > 0) or answer.bogus then
+			if answer and ((answer.secure and #answer > 0) or answer.bogus) then
 				srv_choice.dane = answer;
 			else
 				srv_choice.dane = false;