From 01cb563a3fc34f3f29580d6d21a9762ce7a2fa35 Mon Sep 17 00:00:00 2001 From: des Date: Mon, 20 Aug 2012 17:50:20 +0000 Subject: [PATCH] MFH r236106: avoid segfault with SSH 1 keys Approved by: re (kib) git-svn-id: svn://svn.freebsd.org/base/releng/9.1@239454 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- lib/libpam/modules/pam_ssh/pam_ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libpam/modules/pam_ssh/pam_ssh.c b/lib/libpam/modules/pam_ssh/pam_ssh.c index f051dd4b..a03aee26 100644 --- a/lib/libpam/modules/pam_ssh/pam_ssh.c +++ b/lib/libpam/modules/pam_ssh/pam_ssh.c @@ -110,7 +110,7 @@ pam_ssh_load_key(const char *dir, const char *kfn, const char *passphrase, * with an empty passphrase, and if the key is not encrypted, * accept only an empty passphrase. */ - key = key_load_private(fn, NULL, &comment); + key = key_load_private(fn, "", &comment); if (key != NULL && !(*passphrase == '\0' && nullok)) { key_free(key); return (NULL); -- 2.42.0