diff options
-rw-r--r-- | ssh-keygen.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index 2a7939bfc..ced047c06 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-keygen.c,v 1.292 2016/09/12 03:29:16 dtucker Exp $ */ | 1 | /* $OpenBSD: ssh-keygen.c,v 1.293 2017/02/08 20:32:43 millert 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 |
@@ -1441,7 +1441,10 @@ do_change_comment(struct passwd *pw) | |||
1441 | sshkey_free(private); | 1441 | sshkey_free(private); |
1442 | exit(1); | 1442 | exit(1); |
1443 | } | 1443 | } |
1444 | printf("Key now has comment '%s'\n", comment); | 1444 | if (comment) |
1445 | printf("Key now has comment '%s'\n", comment); | ||
1446 | else | ||
1447 | printf("Key now has no comment\n"); | ||
1445 | 1448 | ||
1446 | if (identity_comment) { | 1449 | if (identity_comment) { |
1447 | strlcpy(new_comment, identity_comment, sizeof(new_comment)); | 1450 | strlcpy(new_comment, identity_comment, sizeof(new_comment)); |