mod_sasl2: Clear sasl_handler on final success
authorMatthew Wild <mwild1@gmail.com>
Thu, 13 Oct 2022 22:48:28 +0100
changeset 5067 53145c6b6b0b
parent 5066 38a0e3621181
child 5068 7d33178c79f2
mod_sasl2: Clear sasl_handler on final success
mod_sasl2/mod_sasl2.lua
--- a/mod_sasl2/mod_sasl2.lua	Thu Oct 13 22:47:35 2022 +0100
+++ b/mod_sasl2/mod_sasl2.lua	Thu Oct 13 22:48:28 2022 +0100
@@ -172,6 +172,7 @@
 -- a common pattern with SASL2, which allows atomic negotiation of a bunch of
 -- stream features.
 module:hook("sasl2/c2s/success", function (event) --luacheck: ignore 212/event
+	event.session.sasl_handler = nil;
 	return true;
 end, -2000);