From 6672075683eb49582b52f4f0c12cf5d396e22fd5 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 11 May 2009 11:48:32 +0000 Subject: [PATCH] prevent traceback when receiving wrong E2E negotiation stanza. Fixes #5015 --- src/common/stanza_session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/stanza_session.py b/src/common/stanza_session.py index 053026908..ee0d1fe95 100644 --- a/src/common/stanza_session.py +++ b/src/common/stanza_session.py @@ -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]