Small memory allocation bug in openssh_encrypted() fixed.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 15 Jun 2002 15:37:15 +0000 (15:37 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 15 Jun 2002 15:37:15 +0000 (15:37 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@1732 cda61777-01e9-0310-a592-d414129be87e

import.c

index 2ff3698..7ad09ac 100644 (file)
--- a/import.c
+++ b/import.c
@@ -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) {