diff options
author | green <green@FreeBSD.org> | 2002-01-07 15:55:20 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2002-01-07 15:55:20 +0000 |
commit | fe27adc46bfeb14dffc3d4000d60a3949b4ee018 (patch) | |
tree | 944111d7b2934d90e8411d53ece8195f2315db2b /crypto | |
parent | da24d835d08fab4e11e2594a8f57dffe09390c35 (diff) | |
download | FreeBSD-src-fe27adc46bfeb14dffc3d4000d60a3949b4ee018.zip FreeBSD-src-fe27adc46bfeb14dffc3d4000d60a3949b4ee018.tar.gz |
Fix a coredump bug occurring if ssh-keygen attempts to change the password
on a DSA key.
Submitted by: ian j hart <ianjhart@ntlworld.com>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/openssh/authfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssh/authfile.c b/crypto/openssh/authfile.c index 298b1ed..4d47501 100644 --- a/crypto/openssh/authfile.c +++ b/crypto/openssh/authfile.c @@ -556,7 +556,7 @@ key_load_private(const char *filename, const char *passphrase, lseek(fd, (off_t) 0, SEEK_SET); /* rewind */ if (pub == NULL) { /* closes fd */ - return key_load_private_pem(fd, KEY_UNSPEC, passphrase, NULL); + return key_load_private_pem(fd, KEY_UNSPEC, passphrase, commentp); } else { /* it's a SSH v1 key if the public key part is readable */ key_free(pub); |