1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

Small memory allocation bug in openssh_encrypted() fixed.

[originally from svn r1732]
This commit is contained in:
Simon Tatham 2002-06-15 15:37:15 +00:00
parent b6a9610e86
commit ab1d4f5dce

View File

@ -62,7 +62,7 @@ int import_target_type(int type)
int import_encrypted(char *filename, int type, char **comment)
{
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);
}
if (type == SSH_KEYTYPE_SSHCOM) {