changeset 5063:53145c6b6b0b

mod_sasl2: Clear sasl_handler on final success
author Matthew Wild <mwild1@gmail.com>
date Thu, 13 Oct 2022 22:48:28 +0100
parents 38a0e3621181
children 7d33178c79f2
files mod_sasl2/mod_sasl2.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);