summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--paramiko/hostkeys.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/paramiko/hostkeys.py b/paramiko/hostkeys.py
index 851d2b17..09922d48 100644
--- a/paramiko/hostkeys.py
+++ b/paramiko/hostkeys.py
@@ -53,9 +53,10 @@ class HostKeyEntry:
@type line: str
"""
fields = line.split(' ')
- if len(fields) != 3:
+ if len(fields) < 3:
# Bad number of fields
return None
+ fields = fields[:3]
names, keytype, key = fields
names = names.split(',')