changeset b8382e8e3a57 in /home/hg/repos/gajim

author: Yann Leboulanger <[email protected]>
branches: 
details:http://hg.gajim.org/gajim?cmd=changeset;node=b8382e8e3a57
description: don't crash when we get a wrong feature negotiation form

diffstat:

 src/common/connection_handlers_events.py |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 7dad93b4f1c9 -r b8382e8e3a57 src/common/connection_handlers_events.py
--- a/src/common/connection_handlers_events.py  Mon Nov 21 21:46:59 2016 +0000
+++ b/src/common/connection_handlers_events.py  Thu Nov 24 22:42:33 2016 +0100
@@ -1276,6 +1276,9 @@
                 if not form:
                     return
 
+                if not form.getField('FORM_TYPE'):
+                    return
+                
                 if form['FORM_TYPE'] == 'urn:xmpp:ssn':
                     self.session.handle_negotiation(form)
                 else:
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to