aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-03-09 18:11:45 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-03-09 18:11:45 +0500
commitb01e95ae145a66dd28529e4891bc244bb70ca584 (patch)
tree3f5db4c1ba0d14d80276cad73ea1c9c573802c3e
parent84ece3aca6b0d76a307acb47a4d0fc89c5eb3437 (diff)
downloadprosody-b01e95ae145a66dd28529e4891bc244bb70ca584.tar.gz
prosody-b01e95ae145a66dd28529e4891bc244bb70ca584.zip
mod_compression: Don't succeed after indicating a failure.
-rw-r--r--plugins/mod_compression.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_compression.lua b/plugins/mod_compression.lua
index e35430fd..bdecf467 100644
--- a/plugins/mod_compression.lua
+++ b/plugins/mod_compression.lua
@@ -43,6 +43,7 @@ module:add_handler({"c2s_unauthed", "c2s"}, "compress", xmlns_compression_protoc
local error_st = st.stanza("failure", {xmlns=xmlns_compression_protocol}):tag("unsupported-method");
session.send(error_st);
session.log("warn", "Tried to establish another compression layer.");
+ return;
end
-- checking if the compression method is supported