Commit ab38ee7b authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[omemo] Fail with log output on invalid stanza

parent 70a01c0d
......@@ -227,6 +227,10 @@ class OMEMOConnection:
from_jid = app.get_jid_without_resource(from_jid)
msg_dict = unpack_encrypted(omemo_encrypted_tag)
if msg_dict is None:
log.error('Invalid omemo message received:\n%s', msg.msg_)
msg.encrypted = 'drop'
msg_dict['sender_jid'] = from_jid
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment