# HG changeset patch # User Kim Alvefur # Date 1456932491 -3600 # Node ID 56e65b1e54e8683c7b3169ecfd5ee1171ed25aa1 # Parent 67ac4a0b6e50012d0a4a33d3968503e0d33957e9 mod_c2s: Remove connection object from session object when connection disconnected to prevent accidental use (see #590) diff -r 67ac4a0b6e50 -r 56e65b1e54e8 plugins/mod_c2s.lua --- a/plugins/mod_c2s.lua Thu Feb 25 22:36:42 2016 +0100 +++ b/plugins/mod_c2s.lua Wed Mar 02 16:28:11 2016 +0100 @@ -258,6 +258,7 @@ if session then (session.log or log)("info", "Client disconnected: %s", err or "connection closed"); sm_destroy_session(session, err); + session.conn = nil; sessions[conn] = nil; end end