changeset 55add7495c03 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=55add7495c03 description: ignore <iq> without an ID. They are required by RFC. Fixes #5122
diffstat:
src/common/connection_handlers.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 0e358a669575 -r 55add7495c03 src/common/connection_handlers.py --- a/src/common/connection_handlers.py Mon Jun 29 06:31:36 2009 +0200 +++ b/src/common/connection_handlers.py Mon Jun 29 07:57:10 2009 +0200 @@ -840,6 +840,9 @@ 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) + return if not identities: # ejabberd doesn't send identities when we browse online users #FIXME: see http://www.jabber.ru/bugzilla/show_bug.cgi?id=225 identities = [{'category': 'server', 'type': 'im', 'name': node}]