mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Passing NULL as a key casues a segfault when loading SSH 1 keys. Use
an empty string instead.
This commit is contained in:
parent
89e36b6494
commit
8d6900eab8
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue