mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
Small memory allocation bug in openssh_encrypted() fixed.
[originally from svn r1732]
This commit is contained in:
parent
b6a9610e86
commit
ab1d4f5dce
2
import.c
2
import.c
@ -62,7 +62,7 @@ int import_target_type(int type)
|
|||||||
int import_encrypted(char *filename, int type, char **comment)
|
int import_encrypted(char *filename, int type, char **comment)
|
||||||
{
|
{
|
||||||
if (type == SSH_KEYTYPE_OPENSSH) {
|
if (type == SSH_KEYTYPE_OPENSSH) {
|
||||||
*comment = filename; /* OpenSSH doesn't do key comments */
|
*comment = dupstr(filename); /* OpenSSH doesn't do key comments */
|
||||||
return openssh_encrypted(filename);
|
return openssh_encrypted(filename);
|
||||||
}
|
}
|
||||||
if (type == SSH_KEYTYPE_SSHCOM) {
|
if (type == SSH_KEYTYPE_SSHCOM) {
|
||||||
|
Loading…
Reference in New Issue
Block a user