Author: asterix
Date: 2009-05-11 13:48:32 +0200 (Mon, 11 May 2009)
New Revision: 11281

Modified:
   trunk/src/common/stanza_session.py
Log:
prevent traceback when receiving wrong E2E negotiation stanza. Fixes #5015


Modified: trunk/src/common/stanza_session.py
===================================================================
--- trunk/src/common/stanza_session.py  2009-05-10 20:02:46 UTC (rev 11280)
+++ trunk/src/common/stanza_session.py  2009-05-11 11:48:32 UTC (rev 11281)
@@ -886,7 +886,7 @@
                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]

_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to