diff options
author | Colin Watson <cjwatson@debian.org> | 2008-07-21 11:18:01 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2008-07-21 11:18:01 +0000 |
commit | ca43818a7db78a1c9888cb8662f06777f65a9f58 (patch) | |
tree | 62170850d5b1b8a10580680c36f5506427579a32 | |
parent | 7709e60ab852a2c842fb5495934fcd7893e34072 (diff) |
fix segfault when no identity files were supplied
-rw-r--r-- | ssh.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1260,7 +1260,7 @@ load_public_identity_files(void) | |||
1260 | public = key_load_public(filename, NULL); | 1260 | public = key_load_public(filename, NULL); |
1261 | debug("identity file %s type %d", filename, | 1261 | debug("identity file %s type %d", filename, |
1262 | public ? public->type : -1); | 1262 | public ? public->type : -1); |
1263 | if (blacklisted_key(public, &fp) == 1) { | 1263 | if (public && blacklisted_key(public, &fp) == 1) { |
1264 | if (options.use_blacklisted_keys) | 1264 | if (options.use_blacklisted_keys) |
1265 | logit("Public key %s blacklisted (see " | 1265 | logit("Public key %s blacklisted (see " |
1266 | "ssh-vulnkey(1)); continuing anyway", fp); | 1266 | "ssh-vulnkey(1)); continuing anyway", fp); |