Skip to content
Snippets Groups Projects
Commit 723dfca2 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

don't crash when we get wrong streamhost. Fixes #6983

parent 32b4f195
No related branches found
No related tags found
No related merge requests found
......@@ -597,6 +597,12 @@ class ConnectionSocks5Bytestream(ConnectionBytestream):
}
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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment