diff options
-rw-r--r-- | ssh-keygen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index 4a5c40284..a3c2362a2 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-keygen.c,v 1.265 2015/02/24 15:24:05 naddy Exp $ */ | 1 | /* $OpenBSD: ssh-keygen.c,v 1.266 2015/02/26 20:45:47 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 |
@@ -1276,7 +1276,8 @@ do_change_passphrase(struct passwd *pw) | |||
1276 | identity_file, ssh_err(r)); | 1276 | identity_file, ssh_err(r)); |
1277 | exit(1); | 1277 | exit(1); |
1278 | } | 1278 | } |
1279 | printf("Key has comment '%s'\n", comment); | 1279 | if (comment) |
1280 | printf("Key has comment '%s'\n", comment); | ||
1280 | 1281 | ||
1281 | /* Ask the new passphrase (twice). */ | 1282 | /* Ask the new passphrase (twice). */ |
1282 | if (identity_new_passphrase) { | 1283 | if (identity_new_passphrase) { |