summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2009-10-06 10:04:26 +0000
committerBadlop <badlop@process-one.net>2009-10-06 10:04:26 +0000
commitc10984f61b8181a171263712eac6fd79d15af6d0 (patch)
treeffd4a74ad90d2a04d494386895606c6a61f0f7bc /src
parentPack presences stored in C2S processes (thanks to Geoff Cant)(EJAB-1057) (diff)
Improve stream error stanza when receives invalid handshake from component.
SVN Revision: 2640
Diffstat (limited to 'src')
-rw-r--r--src/ejabberd_service.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ejabberd_service.erl b/src/ejabberd_service.erl
index 42c65945..34d62f43 100644
--- a/src/ejabberd_service.erl
+++ b/src/ejabberd_service.erl
@@ -80,7 +80,11 @@
).
-define(INVALID_HANDSHAKE_ERR,
- "<stream:error>Invalid Handshake</stream:error>"
+ "<stream:error>"
+ "<not-authorized xmlns='urn:ietf:params:xml:ns:xmpp-streams'/>"
+ "<text xmlns='urn:ietf:params:xml:ns:xmpp-streams' xml:lang='en'>"
+ "Invalid Handshake</text>"
+ "</stream:error>"
"</stream:stream>"
).