Protect against bad muc#owner requests

This commit is contained in:
LOU Xun 2019-06-06 15:40:13 +00:00
parent 6c0d6f0774
commit 8d6455460d
No known key found for this signature in database
GPG Key ID: 05DAC4F7AFA6B90F
1 changed files with 3 additions and 1 deletions

View File

@ -3245,7 +3245,9 @@ process_iq_owner(From, #iq{type = get, lang = Lang,
end;
true ->
{error, xmpp:err_bad_request()}
end.
end;
process_iq_owner(_, _, _) ->
{error, xmpp:err_bad_request()}.
-spec is_allowed_log_change(muc_roomconfig:result(), state(), jid()) -> boolean().
is_allowed_log_change(Options, StateData, From) ->