Philipp Hörist pushed to branch master at gajim / gajim
Commits:
f29d57e5 by Philipp Hörist at 2018-04-03T19:54:09+02:00
Catch invalid IQ stanzas and log them
Fixes #9044
- - - - -
1 changed file:
- gajim/common/protocol/bytestream.py
Changes:
=====================================
gajim/common/protocol/bytestream.py
=====================================
--- a/gajim/common/protocol/bytestream.py
+++ b/gajim/common/protocol/bytestream.py
@@ -673,7 +673,10 @@ class ConnectionSocks5Bytestream(ConnectionBytestream):
# if we want to respect xep-0065 we have to check for proxy
# activation result in any result iq
real_id = iq_obj.getAttr('id')
- if not real_id.startswith('au_'):
+ if real_id is None:
+ log.warning('Invalid IQ without id attribute:\n%s', iq_obj)
+ raise nbxmpp.NodeProcessed
+ if real_id is None or not real_id.startswith('au_'):
return
frm = self._ft_get_from(iq_obj)
id_ = real_id[3:]
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/f29d57e50be7feb077d838d491a07be0ebfd63d8
---
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/f29d57e50be7feb077d838d491a07be0ebfd63d8
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits