# HG changeset patch # User tmolitor # Date 1616074247 -3600 # Node ID f1abc34414bc3a39ef58335241a08e1d058bd7eb # Parent 133e8ed291feaedf7a038d584c8100b30d791f55 mod_saslauth: Don't throw errors in async code when connections are gone Fixes #1515 diff -r 133e8ed291fe -r f1abc34414bc plugins/mod_saslauth.lua --- 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();