prevent traceback when receiving wrong E2E negotiation stanza. Fixes #5015
This commit is contained in:
parent
c15f487deb
commit
6672075683
|
@ -886,7 +886,7 @@ class EncryptedStanzaSession(StanzaSession):
|
||||||
srses = secrets.secrets().retained_secrets(self.conn.name,
|
srses = secrets.secrets().retained_secrets(self.conn.name,
|
||||||
self.jid.getStripped())
|
self.jid.getStripped())
|
||||||
|
|
||||||
srshash = base64.b64decode(form['srshash'])
|
srshash = base64.b64decode(form.getField('srshash'))
|
||||||
|
|
||||||
for s in srses:
|
for s in srses:
|
||||||
secret = s[0]
|
secret = s[0]
|
||||||
|
|
Loading…
Reference in New Issue