mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
* src/ejabberd_s2s.erl: Don't bounce packets with "error" and
"result" type SVN Revision: 747
This commit is contained in:
parent
3d7090f62c
commit
77282b0e1a
@ -1,5 +1,8 @@
|
||||
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: Don't start s2s process for existing
|
||||
|
@ -210,9 +210,14 @@ do_route(From, To, Packet) ->
|
||||
send_element(Pid, {xmlelement, Name, NewAttrs, Els}),
|
||||
ok;
|
||||
{aborted, Reason} ->
|
||||
Err = jlib:make_error_reply(
|
||||
Packet, ?ERR_SERVICE_UNAVAILABLE),
|
||||
ejabberd_router:route(To, From, Err),
|
||||
case xml:get_tag_attr_s("type", Packet) of
|
||||
"error" -> ok;
|
||||
"result" -> ok;
|
||||
_ ->
|
||||
Err = jlib:make_error_reply(
|
||||
Packet, ?ERR_SERVICE_UNAVAILABLE),
|
||||
ejabberd_router:route(To, From, Err)
|
||||
end,
|
||||
false
|
||||
end.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user