changeset 17c64d4acdb8 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=17c64d4acdb8 description: don't crash when we get wrong streamhost. Fixes #6983
diffstat:
src/common/protocol/bytestream.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r b6b45a38fa12 -r 17c64d4acdb8 src/common/protocol/bytestream.py --- a/src/common/protocol/bytestream.py Fri Sep 23 19:00:32 2011 +0200 +++ b/src/common/protocol/bytestream.py Fri Sep 23 19:01:42 2011 +0200 @@ -597,6 +597,12 @@ } for attr in item.getAttrs(): host_dict[attr] = item.getAttr(attr) + if 'host' not in host_dict: + continue + if 'jid' not in host_dict: + continue + if 'port' not in host_dict: + continue streamhosts.append(host_dict) if file_props is None: if sid in self.files_props: