Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
ab9c8f04 by lovetox at 2020-05-26T22:26:04+02:00
MUC: Add None check
- - - - -
1 changed file:
- nbxmpp/modules/muc.py
Changes:
=====================================
nbxmpp/modules/muc.py
=====================================
@@ -161,7 +161,8 @@ class MUC(BaseModule):
self._log.warning(stanza)
raise NodeProcessed
- if (properties.muc_user.role.is_none and
+ if (properties.muc_user is not None and
+ properties.muc_user.role.is_none and
not properties.type.is_unavailable):
self._log.warning('Malformed Stanza')
self._log.warning(stanza)
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/ab9c8f040aec946386f6c876…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/ab9c8f040aec946386f6c876…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
123d35d6 by lovetox at 2020-05-26T22:24:20+02:00
MUC: Add check for another case of malformed presence
- - - - -
1 changed file:
- nbxmpp/modules/muc.py
Changes:
=====================================
nbxmpp/modules/muc.py
=====================================
@@ -161,6 +161,12 @@ class MUC(BaseModule):
self._log.warning(stanza)
raise NodeProcessed
+ if (properties.muc_user.role.is_none and
+ not properties.type.is_unavailable):
+ self._log.warning('Malformed Stanza')
+ self._log.warning(stanza)
+ raise NodeProcessed
+
def _process_groupchat_message(self, _client, stanza, properties):
properties.from_muc = True
properties.muc_jid = properties.jid.copy()
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/123d35d638b72ba7314ce0ee…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/123d35d638b72ba7314ce0ee…
You're receiving this email because of your account on dev.gajim.org.