Commit 94032704 authored by Yann Leboulanger's avatar Yann Leboulanger

ignore <iq> without an ID. They are required by RFC. Fixes #5122

parent 64387339
......@@ -840,6 +840,9 @@ def _DiscoverInfoCB(self, con, iq_obj):
gajim.transport_type[jid] = transport_type
gajim.logger.save_transport_type(jid, transport_type)
id = iq_obj.getID()
if id is None:
log.warn('Invalid IQ received without an ID. Ignoring it: %s' % iq_obj)
if not identities: # ejabberd doesn't send identities when we browse online users
#FIXME: see
identities = [{'category': 'server', 'type': 'im', 'name': node}]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment