25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

* src/ejabberd_s2s.erl: Don't bounce packets with "error" and

"result" type

SVN Revision: 747
This commit is contained in:
Alexey Shchepin 2007-03-17 23:02:06 +00:00
parent 3d7090f62c
commit 77282b0e1a
2 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,8 @@
2007-03-18 Alexey Shchepin <alexey@sevcom.net> 2007-03-18 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_s2s.erl: Don't bounce packets with "error" and
"result" type
* src/ejabberd_s2s.erl: Fixed spelling * src/ejabberd_s2s.erl: Fixed spelling
* src/ejabberd_s2s.erl: Don't start s2s process for existing * src/ejabberd_s2s.erl: Don't start s2s process for existing

View File

@ -210,9 +210,14 @@ do_route(From, To, Packet) ->
send_element(Pid, {xmlelement, Name, NewAttrs, Els}), send_element(Pid, {xmlelement, Name, NewAttrs, Els}),
ok; ok;
{aborted, Reason} -> {aborted, Reason} ->
case xml:get_tag_attr_s("type", Packet) of
"error" -> ok;
"result" -> ok;
_ ->
Err = jlib:make_error_reply( Err = jlib:make_error_reply(
Packet, ?ERR_SERVICE_UNAVAILABLE), Packet, ?ERR_SERVICE_UNAVAILABLE),
ejabberd_router:route(To, From, Err), ejabberd_router:route(To, From, Err)
end,
false false
end. end.