From c232b3e336238048cb3a8c3548906182ee54c9cd Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 15 Jun 2002 15:37:15 +0000 Subject: [PATCH] Small memory allocation bug in openssh_encrypted() fixed. git-svn-id: svn://svn.tartarus.org/sgt/putty@1732 cda61777-01e9-0310-a592-d414129be87e --- import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/import.c b/import.c index 2ff36980..7ad09ac7 100644 --- 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) { -- 2.11.0