changeset 49c34a7dae36 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=49c34a7dae36
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 4be0d97473e1 -r 49c34a7dae36 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
@@ -867,6 +867,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}]
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to