From: simon Date: Sat, 15 Jun 2002 15:37:15 +0000 (+0000) Subject: Small memory allocation bug in openssh_encrypted() fixed. X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/c232b3e336238048cb3a8c3548906182ee54c9cd Small memory allocation bug in openssh_encrypted() fixed. git-svn-id: svn://svn.tartarus.org/sgt/putty@1732 cda61777-01e9-0310-a592-d414129be87e --- 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) {