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

This commit is contained in:
Yann Leboulanger 2009-05-11 11:48:32 +00:00
parent c15f487deb
commit 6672075683
1 changed files with 1 additions and 1 deletions

View File

@ -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]