25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Fix bug when routing error stanza

This commit is contained in:
Badlop 2010-10-16 22:46:00 +02:00
parent 17b4aaa1f7
commit 16f0873488

View File

@ -510,9 +510,10 @@ wait_for_auth({xmlstreamelement, El}, StateData) ->
exmpp_server_legacy_auth:fields(El, Fields)), exmpp_server_legacy_auth:fields(El, Fields)),
fsm_next_state(wait_for_auth, StateData); fsm_next_state(wait_for_auth, StateData);
{auth, _ID, set, {_U, _P, _D, undefined}} -> {auth, _ID, set, {_U, _P, _D, undefined}} ->
Err = exmpp_stanza:error(El#xmlel.ns, 'not-acceptable', Err = exmpp_stanza:reply_with_error(El,
{"en", "No resource provided"}), exmpp_stanza:error(El#xmlel.ns, 'not-acceptable',
send_element(StateData, exmpp_iq:error(El, Err)), {"en", "No resource provided"})),
send_element(StateData, Err),
fsm_next_state(wait_for_auth, StateData); fsm_next_state(wait_for_auth, StateData);
{auth, _ID, set, {U, P, D, R}} -> {auth, _ID, set, {U, P, D, R}} ->
try try