Software /
code /
prosody
Changeset
11508:f1abc34414bc 0.11
mod_saslauth: Don't throw errors in async code when connections are gone
Fixes #1515
author | tmolitor <thilo@eightysoft.de> |
---|---|
date | Thu, 18 Mar 2021 14:30:47 +0100 |
parents | 11507:133e8ed291fe |
children | 11509:dfdec3f9ccb1 |
files | plugins/mod_saslauth.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua Thu Mar 18 14:30:32 2021 +0100 +++ b/plugins/mod_saslauth.lua Thu Mar 18 14:30:47 2021 +0100 @@ -44,6 +44,7 @@ end local function handle_status(session, status, ret, err_msg) + if session["sasl_handler"] == nil then return "failure", "connection-timeout", "Connection gone"; end if status == "failure" then module:fire_event("authentication-failure", { session = session, condition = ret, text = err_msg }); session.sasl_handler = session.sasl_handler:clean_clone();