diff --git a/import.c b/import.c index a11d1602..61f14371 100644 --- a/import.c +++ b/import.c @@ -1442,7 +1442,7 @@ static ssh2_userkey *openssh_new_read( } } - if (!retkey) { + if (!retkey->key) { errmsg = "key index out of range"; goto error; }