Commit db91ab35 by Brian Coca

Merge pull request #10315 from alobbs/branch-10225

v2 Avoids ssh Runtime error
parents d17efb43 2dc910bd
...@@ -237,6 +237,8 @@ class Connection(ConnectionBase): ...@@ -237,6 +237,8 @@ class Connection(ConnectionBase):
if line is None or " " not in line: if line is None or " " not in line:
continue continue
tokens = line.split() tokens = line.split()
if not tokens:
continue
if tokens[0].find(self.HASHED_KEY_MAGIC) == 0: if tokens[0].find(self.HASHED_KEY_MAGIC) == 0:
# this is a hashed known host entry # this is a hashed known host entry
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment