diff --git a/import.c b/import.c index 51b236a0..508ef782 100644 --- a/import.c +++ b/import.c @@ -886,6 +886,8 @@ struct ssh2_userkey *openssh_pem_read(const Filename *filename, } else { assert(0 && "Bad key type from load_openssh_pem_key"); + errmsg = "Bad key type from load_openssh_pem_key"; + goto error; } /*