mod_sasl2: Return status from event handlers
authorMatthew Wild <mwild1@gmail.com>
Sun, 28 Aug 2022 11:11:50 +0100
changeset 5022 ed2a9a4c4f01
parent 5021 96e83b4a93f7
child 5023 c83ce822f105
mod_sasl2: Return status from event handlers Without this, clients would get "unsupported-stanza-type" even on successfully handled responses.
mod_sasl2/mod_sasl2.lua
--- a/mod_sasl2/mod_sasl2.lua	Sat Aug 27 16:36:22 2022 +0200
+++ b/mod_sasl2/mod_sasl2.lua	Sun Aug 28 11:11:50 2022 +0100
@@ -65,7 +65,7 @@
 		end
 	end
 
-	module:fire_event("sasl2/"..session.base_type.."/"..status, {
+	return module:fire_event("sasl2/"..session.base_type.."/"..status, {
 			session = session,
 			message = ret;
 			error = err;