# HG changeset patch # User Matthew Wild # Date 1665697708 -3600 # Node ID 53145c6b6b0bc555cdda39c1fc2cd053864d4889 # Parent 38a0e36211810c62de8e4e5d43ab5f7d46e9cac5 mod_sasl2: Clear sasl_handler on final success diff -r 38a0e3621181 -r 53145c6b6b0b 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);