mod_bosh: Only pass stanza to core_process_stanza if it wasn't dropped by filters
authorMatthew Wild <mwild1@gmail.com>
Mon, 8 Jul 2013 22:42:54 +0000 (23:42 +0100)
committerMatthew Wild <mwild1@gmail.com>
Mon, 8 Jul 2013 22:42:54 +0000 (23:42 +0100)
plugins/mod_bosh.lua

index b88cd9691ad71bb74733505a4d7e20e8dc87adfe..e9506a83594867c4c82e348e4c25b76012385725 100644 (file)
@@ -361,7 +361,9 @@ function stream_callbacks.handlestanza(context, stanza)
                        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