diff mod_adhoc_cmd_admin/mod_adhoc_cmd_admin.lua @ 48:7fbaf590dc12

mod_adhoc_cmd_admin: Fix session leak
author Florian Zeitz <florob@babelmonkeys.de>
date Sat, 17 Oct 2009 01:36:25 +0200
parents 00f96207693a
children 59f490390528
line wrap: on
line diff
--- a/mod_adhoc_cmd_admin/mod_adhoc_cmd_admin.lua	Fri Oct 16 23:46:29 2009 +0200
+++ b/mod_adhoc_cmd_admin/mod_adhoc_cmd_admin.lua	Sat Oct 17 01:36:25 2009 +0200
@@ -130,6 +130,8 @@
 				:tag("field", {type="hidden", var="FORM_TYPE"})
 					:tag("value"):text("http://jabber.org/protocol/admin"):up():up()
 				:add_child(field)));
+		sessions[stanza.tags[1].attr.sessionid] = nil;
+		return true;
 	else
 		local sessionid=uuid.generate();
 		sessions[sessionid] = "executing";