25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-24 17:29:28 +01:00

Fix bug handling jid:decode/1 return, introduced in cdb286d1d (#3461)

This commit is contained in:
Badlop 2021-01-31 23:33:53 +01:00
parent b3d9c0d1f7
commit bb397bb424

View File

@ -409,9 +409,10 @@ get_member_jid(#state{user_jid_attr = UserJIDAttr, user_uid = UIDAttr} = State,
[] -> [] ->
{error, error}; {error, error};
[#eldap_entry{attributes = [{UserJIDAttr, [MemberJID | _]}]} | _] -> [#eldap_entry{attributes = [{UserJIDAttr, [MemberJID | _]}]} | _] ->
case jid:decode(MemberJID) of try jid:decode(MemberJID) of
error -> {error, Host};
#jid{luser = U, lserver = S} -> {U, S} #jid{luser = U, lserver = S} -> {U, S}
catch
error:{bad_jid, _} -> {error, Host}
end end
end. end.