Changeset

5726:3bccc68a38e3

mod_bosh: Only pass stanza to core_process_stanza if it wasn't dropped by filters
author Matthew Wild <mwild1@gmail.com>
date Mon, 08 Jul 2013 23:42:54 +0100
parents 5724:a49f32e3d73b
children 5727:372ecf3630cf
files plugins/mod_bosh.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_bosh.lua	Mon Jul 08 21:38:08 2013 +0100
+++ b/plugins/mod_bosh.lua	Mon Jul 08 23:42:54 2013 +0100
@@ -361,7 +361,9 @@
 			stanza.attr.xmlns = nil;
 		end
 		stanza = session.filter("stanzas/in", stanza);
-		core_process_stanza(session, stanza);
+		if stanza then
+			core_process_stanza(session, stanza);
+		end
 	end
 end