# HG changeset patch # User Matthew Wild # Date 1273069936 -3600 # Node ID c49be80767ee3f51ac9a8eb2895fea57c151ea0d # Parent c20b9fe1624b4d3a2d1aa72d33a1e3c5bd44e98a mod_proxy65: Return service-unavailable error when receiving an iq we didn't understand diff -r c20b9fe1624b -r c49be80767ee plugins/mod_proxy65.lua --- a/plugins/mod_proxy65.lua Wed May 05 15:31:18 2010 +0100 +++ b/plugins/mod_proxy65.lua Wed May 05 15:32:16 2010 +0100 @@ -236,6 +236,9 @@ elseif xmlns == "http://jabber.org/protocol/bytestreams" then origin.send(get_stream_host(origin, stanza)); return true; + else + origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); + return true; end elseif stanza.name == "iq" and type == "set" then local reply, from, to, sid = set_activation(stanza);