]> granicus.if.org Git - ejabberd/commit
Fix mod_privacy race condition
authorNathan Bruning <nathan@iperity.com>
Sat, 27 Oct 2018 13:26:37 +0000 (15:26 +0200)
committerNathan Bruning <nathan@iperity.com>
Mon, 10 Jun 2019 10:49:39 +0000 (12:49 +0200)
commit570800a54077e2a3788768894dff909f854c435b
treead369e29cc1159929db3f9ca8d6a3b64a551d4a5
parented1cbc2c316f72afb7e21e6d012080e392070bec
Fix mod_privacy race condition

mod_privacy updates the c2s state in user_receive_packet, which
tracks the *result* of the IQ set for active privacy lists.

When a second stanza is sent directly after a privacy list request,
the second stanza will be processed using the old privacy list,
because the IQ result has not yet been routed.
src/mod_privacy.erl