changeset 55cc03b5b157 in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: gajim_0.16 details:http://hg.gajim.org/gajim?cmd=changeset;node=55cc03b5b157 description: ignore wrong stanza. Fixes #8205
diffstat:
src/common/connection_handlers_events.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r a43f0fa77a26 -r 55cc03b5b157 src/common/connection_handlers_events.py --- a/src/common/connection_handlers_events.py Sun Jan 17 20:54:20 2016 +0100 +++ b/src/common/connection_handlers_events.py Sat Feb 20 21:28:34 2016 +0100 @@ -1243,6 +1243,8 @@ feature = self.stanza.getTag(name='feature', namespace=nbxmpp.NS_FEATURE) form = nbxmpp.DataForm(node=feature.getTag('x')) + if not form: + return
if form['FORM_TYPE'] == 'urn:xmpp:ssn': self.session.handle_negotiation(form)