diff mod_sasl2_bind2/mod_sasl2_bind2.lua @ 5037:8a8100fff580

mod_sasl2_bind2, mod_sasl2_sm: Move sasl2_sm_success to session ...to allow referencing it across multiple different events.
author Matthew Wild <mwild1@gmail.com>
date Sun, 04 Sep 2022 09:51:36 +0100
parents 9ef5625d0d39
children c0d243b27e64
line wrap: on
line diff
--- a/mod_sasl2_bind2/mod_sasl2_bind2.lua	Sat Sep 03 18:20:07 2022 +0100
+++ b/mod_sasl2_bind2/mod_sasl2_bind2.lua	Sun Sep 04 09:51:36 2022 +0100
@@ -74,7 +74,7 @@
 	if not bind_request then return; end -- No bind requested
 	session.sasl2_bind_request = nil;
 
-	local sm_success = event.sasl2_sm_success;
+	local sm_success = session.sasl2_sm_success;
 	if sm_success and sm_success.type == "resumed" then
 		return; -- No need to bind a resource
 	end