diff options
-rw-r--r-- | ssh-keygen.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index 664724276..64cee4de0 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-keygen.c,v 1.418 2020/08/27 01:08:45 djm Exp $ */ | 1 | /* $OpenBSD: ssh-keygen.c,v 1.419 2020/08/27 09:46:04 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 |
@@ -815,10 +815,14 @@ do_print_public(struct passwd *pw) | |||
815 | prv = load_identity(identity_file, &comment); | 815 | prv = load_identity(identity_file, &comment); |
816 | if ((r = sshkey_write(prv, stdout)) != 0) | 816 | if ((r = sshkey_write(prv, stdout)) != 0) |
817 | error("sshkey_write failed: %s", ssh_err(r)); | 817 | error("sshkey_write failed: %s", ssh_err(r)); |
818 | sshkey_free(prv); | ||
819 | if (comment != NULL && *comment != '\0') | 818 | if (comment != NULL && *comment != '\0') |
820 | fprintf(stdout, " %s", comment); | 819 | fprintf(stdout, " %s", comment); |
821 | fprintf(stdout, "\n"); | 820 | fprintf(stdout, "\n"); |
821 | if (sshkey_is_sk(prv)) { | ||
822 | debug("sk_application: \"%s\", sk_flags 0x%02x", | ||
823 | prv->sk_application, prv->sk_flags); | ||
824 | } | ||
825 | sshkey_free(prv); | ||
822 | free(comment); | 826 | free(comment); |
823 | exit(0); | 827 | exit(0); |
824 | } | 828 | } |