# HG changeset patch # User Matthew Wild # Date 1300735971 0 # Node ID 6b83ef6ec845a0860fb525fff817c2259a2f5e8e # Parent 8b8d2b8e4d0b55e4db0f89fd21e0992ee2c38e54 mod_dialback: Use session:close() on dialback failure instead of s2smanager.destroy_session() (thanks Zash) diff -r 8b8d2b8e4d0b -r 6b83ef6ec845 plugins/mod_dialback.lua --- a/plugins/mod_dialback.lua Thu Mar 03 18:14:08 2011 +0000 +++ b/plugins/mod_dialback.lua Mon Mar 21 19:32:51 2011 +0000 @@ -12,7 +12,6 @@ local s2s_make_authenticated = require "core.s2smanager".make_authenticated; local s2s_initiate_dialback = require "core.s2smanager".initiate_dialback; local s2s_verify_dialback = require "core.s2smanager".verify_dialback; -local s2s_destroy_session = require "core.s2smanager".destroy_session; local log = module._log; @@ -126,7 +125,7 @@ if stanza.attr.type == "valid" then s2s_make_authenticated(origin, attr.from); else - s2s_destroy_session(origin) + origin:close("not-authorized", "dialback authentication failed"); end return true; end