Skip to content
Snippets Groups Projects
Commit 66720756 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

prevent traceback when receiving wrong E2E negotiation stanza. Fixes #5015

parent c15f487d
No related branches found
No related tags found
No related merge requests found
......@@ -886,7 +886,7 @@ class EncryptedStanzaSession(StanzaSession):
srses = secrets.secrets().retained_secrets(self.conn.name,
self.jid.getStripped())
srshash = base64.b64decode(form['srshash'])
srshash = base64.b64decode(form.getField('srshash'))
for s in srses:
secret = s[0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment