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:
parent
17b4aaa1f7
commit
16f0873488
@ -510,9 +510,10 @@ wait_for_auth({xmlstreamelement, El}, StateData) ->
|
||||
exmpp_server_legacy_auth:fields(El, Fields)),
|
||||
fsm_next_state(wait_for_auth, StateData);
|
||||
{auth, _ID, set, {_U, _P, _D, undefined}} ->
|
||||
Err = exmpp_stanza:error(El#xmlel.ns, 'not-acceptable',
|
||||
{"en", "No resource provided"}),
|
||||
send_element(StateData, exmpp_iq:error(El, Err)),
|
||||
Err = exmpp_stanza:reply_with_error(El,
|
||||
exmpp_stanza:error(El#xmlel.ns, 'not-acceptable',
|
||||
{"en", "No resource provided"})),
|
||||
send_element(StateData, Err),
|
||||
fsm_next_state(wait_for_auth, StateData);
|
||||
{auth, _ID, set, {U, P, D, R}} ->
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user