Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2009-05-17 19:59:00 +0400
committerYann Leboulanger <asterix@lagaule.org>2009-05-17 19:59:00 +0400
commitc48f4c409f0b7681cb7734ba90d9e2675db7d44a (patch)
treefb95e9e62c95c426d6bda2a5509cbda8d8634422
parent17068c0a5024b7a33eaf91e8a68040b4597dc17d (diff)
prevent traceback when negociating E2E. see #5015
-rw-r--r--src/common/stanza_session.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/stanza_session.py b/src/common/stanza_session.py
index ee0d1fe95..d5a5ec9e7 100644
--- a/src/common/stanza_session.py
+++ b/src/common/stanza_session.py
@@ -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]