changeset 63d0d2393b63 in /home/hg/repos/gajim
author: Yann Leboulanger <[email protected]>
branches: gajim_0.16
details:http://hg.gajim.org/gajim?cmd=changeset;node=63d0d2393b63
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 2faa34b18a19 -r 63d0d2393b63 src/common/connection_handlers_events.py
--- a/src/common/connection_handlers_events.py Sun Nov 20 14:05:21 2016 +0100
+++ b/src/common/connection_handlers_events.py Thu Nov 24 22:42:33 2016 +0100
@@ -1272,6 +1272,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