Software /
code /
prosody-modules
Diff
mod_sasl2/mod_sasl2.lua @ 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 |
parent | 5049:e89aad13a52a |
child | 5067:54c6b4595f86 |
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);