ignore wrong incoming stanza. Fixes #7416
This commit is contained in:
parent
2dffcd4ed6
commit
89d0ec58f4
|
@ -75,7 +75,11 @@ class ConnectionJingle(object):
|
||||||
adequatelly.
|
adequatelly.
|
||||||
"""
|
"""
|
||||||
# get data
|
# get data
|
||||||
|
try:
|
||||||
jid = helpers.get_full_jid_from_iq(stanza)
|
jid = helpers.get_full_jid_from_iq(stanza)
|
||||||
|
except helpers.InvalidFormat:
|
||||||
|
log.warn('Invalid JID: %s, ignoring it' % stanza.getFrom())
|
||||||
|
return
|
||||||
id_ = stanza.getID()
|
id_ = stanza.getID()
|
||||||
if (jid, id_) in self.__iq_responses.keys():
|
if (jid, id_) in self.__iq_responses.keys():
|
||||||
self.__iq_responses[(jid, id_)].on_stanza(stanza)
|
self.__iq_responses[(jid, id_)].on_stanza(stanza)
|
||||||
|
|
Loading…
Reference in New Issue