From ca43818a7db78a1c9888cb8662f06777f65a9f58 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 21 Jul 2008 11:18:01 +0000 Subject: fix segfault when no identity files were supplied --- ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ssh.c') 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) public = key_load_public(filename, NULL); debug("identity file %s type %d", filename, public ? public->type : -1); - if (blacklisted_key(public, &fp) == 1) { + if (public && blacklisted_key(public, &fp) == 1) { if (options.use_blacklisted_keys) logit("Public key %s blacklisted (see " "ssh-vulnkey(1)); continuing anyway", fp); -- cgit v1.2.3