From 7a4161c759d839330797d8b376e2ec73ba4e3246 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 20 Feb 2016 21:28:34 +0100 Subject: [PATCH] ignore wrong stanza. Fixes #8205 --- src/common/connection_handlers_events.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/connection_handlers_events.py b/src/common/connection_handlers_events.py index bf0855cf9..386104ea2 100644 --- a/src/common/connection_handlers_events.py +++ b/src/common/connection_handlers_events.py @@ -1243,6 +1243,8 @@ class MessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent): 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)