mirror of
https://github.com/openssh/libopenssh
synced 2026-04-16 09:45:53 +00:00
do not leak existing comment
This commit is contained in:
@@ -202,7 +202,7 @@ add_file(int agent_fd, const char *filename, int key_only)
|
||||
if (strcmp(pass, "") == 0)
|
||||
goto fail_load;
|
||||
if ((r = sshkey_parse_private(&keyblob, pass, filename,
|
||||
&private, &comment)) == 0)
|
||||
&private, NULL)) == 0)
|
||||
break;
|
||||
else if (r != SSH_ERR_KEY_WRONG_PASSPHRASE) {
|
||||
fprintf(stderr,
|
||||
|
||||
Reference in New Issue
Block a user