Skip to content
Snippets Groups Projects
Commit b29bb546 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

ignore wrong incoming stanza. Fixes #7416

parent f6a07b9d
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,11 @@ class ConnectionJingle(object):
adequatelly.
"""
# get data
jid = helpers.get_full_jid_from_iq(stanza)
try:
jid = helpers.get_full_jid_from_iq(stanza)
except helpers.InvalidFormat:
log.warn('Invalid JID: %s, ignoring it' % stanza.getFrom())
return
id_ = stanza.getID()
if (jid, id_) in self.__iq_responses.keys():
self.__iq_responses[(jid, id_)].on_stanza(stanza)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment