summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2008-07-21 11:18:01 +0000
committerColin Watson <cjwatson@debian.org>2008-07-21 11:18:01 +0000
commitca43818a7db78a1c9888cb8662f06777f65a9f58 (patch)
tree62170850d5b1b8a10580680c36f5506427579a32 /ssh.c
parent7709e60ab852a2c842fb5495934fcd7893e34072 (diff)
fix segfault when no identity files were supplied
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssh.c b/ssh.c
index 0f4756ef2..85043a8c0 100644
--- a/ssh.c
+++ b/ssh.c
@@ -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);