Changeset

2659:6c22cb7b0e66

mod_storage_memory: Fix to serialize the correct variable [luacheck]
author Kim Alvefur <zash@zash.se>
date Thu, 30 Mar 2017 23:45:51 +0200
parents 2658:b0f4014cb5b4
children 2660:796ace2c8f9d
files mod_storage_memory/mod_storage_memory.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_storage_memory/mod_storage_memory.lua	Thu Mar 30 23:43:01 2017 +0200
+++ b/mod_storage_memory/mod_storage_memory.lua	Thu Mar 30 23:45:51 2017 +0200
@@ -45,10 +45,10 @@
 	if is_stanza(value) then
 		value = st.preserialize(value);
 		value = function ()
-			return st.deserialize(envload(serialize(data), "@stanza", {}));
+			return st.deserialize(envload(serialize(value), "@stanza", {}));
 		end
 	else
-		value = envload(serialize(data), "@data", {});
+		value = envload(serialize(value), "@data", {});
 	end
 	local a = self.store[username or NULL];
 	if not a then