diff options
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r-- | ssh-keygen.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index 657937629..6a2c52017 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-keygen.c,v 1.163 2007/10/02 17:49:58 chl Exp $ */ | 1 | /* $OpenBSD: ssh-keygen.c,v 1.164 2008/01/19 22:22:58 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -596,7 +596,7 @@ do_fingerprint(struct passwd *pw) | |||
596 | } | 596 | } |
597 | 597 | ||
598 | static void | 598 | static void |
599 | print_host(FILE *f, char *name, Key *public, int hash) | 599 | print_host(FILE *f, const char *name, Key *public, int hash) |
600 | { | 600 | { |
601 | if (hash && (name = host_hash(name, NULL, 0)) == NULL) | 601 | if (hash && (name = host_hash(name, NULL, 0)) == NULL) |
602 | fatal("hash_host failed"); | 602 | fatal("hash_host failed"); |
@@ -723,7 +723,8 @@ do_known_hosts(struct passwd *pw, const char *name) | |||
723 | printf("# Host %s found: " | 723 | printf("# Host %s found: " |
724 | "line %d type %s\n", name, | 724 | "line %d type %s\n", name, |
725 | num, key_type(public)); | 725 | num, key_type(public)); |
726 | print_host(out, cp, public, hash_hosts); | 726 | print_host(out, name, public, |
727 | hash_hosts); | ||
727 | } | 728 | } |
728 | if (delete_host && !c) | 729 | if (delete_host && !c) |
729 | print_host(out, cp, public, 0); | 730 | print_host(out, cp, public, 0); |