Philipp Hörist pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/common/protocol/bytestream.py
    ... ... @@ -673,7 +673,10 @@ class ConnectionSocks5Bytestream(ConnectionBytestream):
    673 673
             # if we want to respect xep-0065 we have to check for proxy
    
    674 674
             # activation result in any result iq
    
    675 675
             real_id = iq_obj.getAttr('id')
    
    676
    -        if not real_id.startswith('au_'):
    
    676
    +        if real_id is None:
    
    677
    +            log.warning('Invalid IQ without id attribute:\n%s', iq_obj)
    
    678
    +            raise nbxmpp.NodeProcessed
    
    679
    +        if real_id is None or not real_id.startswith('au_'):
    
    677 680
                 return
    
    678 681
             frm = self._ft_get_from(iq_obj)
    
    679 682
             id_ = real_id[3:]