From 5492f0aebdf5cb5657d380d60207a5d2bcae506d Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 5 May 2010 15:32:16 +0100 Subject: mod_proxy65: Return service-unavailable error when receiving an iq we didn't understand --- plugins/mod_proxy65.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/mod_proxy65.lua') diff --git a/plugins/mod_proxy65.lua b/plugins/mod_proxy65.lua index ed279ed3..3a543d8f 100644 --- a/plugins/mod_proxy65.lua +++ b/plugins/mod_proxy65.lua @@ -236,6 +236,9 @@ function handle_to_domain(origin, stanza) 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); -- cgit v1.2.3