mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
mod_privacy: Don't try to look up 'undefined' list
Don't crash if the <query/> element of an IQ of type 'set' contains
neither a <default/> nor an <active/> child.
This fixes a regression introduced in commit
8410a203ec
.
This commit is contained in:
parent
9ef52f2b0f
commit
4218aecd1c
@ -413,6 +413,8 @@ update_c2s_state_with_privacy_list(#iq{type = set,
|
||||
State) ->
|
||||
%% Match a IQ set containing a new active privacy list
|
||||
case xmpp:get_subtag(IQ, #privacy_query{}) of
|
||||
#privacy_query{active = undefined} ->
|
||||
State;
|
||||
#privacy_query{default = undefined, active = Active} ->
|
||||
case Active of
|
||||
none ->
|
||||
|
Loading…
Reference in New Issue
Block a user