aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2019-07-24 10:45:30 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2019-07-24 10:45:30 +0200
commit4218aecd1c7f58207ab17d3cccf2886d5558d62b (patch)
treecb937fbf91a77023fe7e63b8efbde8d0e7b91db6 /src
parentFix UTF-8 support in translation files (diff)
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 8410a203ec81f0b0b9e4885221abf1d7ba6bd9f1.
Diffstat (limited to 'src')
-rw-r--r--src/mod_privacy.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mod_privacy.erl b/src/mod_privacy.erl
index f928c8291..d54e79f0b 100644
--- a/src/mod_privacy.erl
+++ b/src/mod_privacy.erl
@@ -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 ->