mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
upstream commit
don't printf NULL key comments; reported by Tom Christensen
This commit is contained in:
parent
6e6458b476
commit
f43d172691
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: ssh-keygen.c,v 1.265 2015/02/24 15:24:05 naddy Exp $ */
|
/* $OpenBSD: ssh-keygen.c,v 1.266 2015/02/26 20:45:47 djm Exp $ */
|
||||||
/*
|
/*
|
||||||
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||||
* Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||||
@ -1276,6 +1276,7 @@ do_change_passphrase(struct passwd *pw)
|
|||||||
identity_file, ssh_err(r));
|
identity_file, ssh_err(r));
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
if (comment)
|
||||||
printf("Key has comment '%s'\n", comment);
|
printf("Key has comment '%s'\n", comment);
|
||||||
|
|
||||||
/* Ask the new passphrase (twice). */
|
/* Ask the new passphrase (twice). */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user