prevent traceback when negociating E2E. see #5015
This commit is contained in:
parent
17068c0a50
commit
c48f4c409f
|
@ -886,7 +886,10 @@ class EncryptedStanzaSession(StanzaSession):
|
|||
srses = secrets.secrets().retained_secrets(self.conn.name,
|
||||
self.jid.getStripped())
|
||||
|
||||
srshash = base64.b64decode(form.getField('srshash'))
|
||||
try:
|
||||
srshash = base64.b64decode(form['srshash'])
|
||||
except IndexError:
|
||||
return
|
||||
|
||||
for s in srses:
|
||||
secret = s[0]
|
||||
|
|
Loading…
Reference in New Issue