From ab1d4f5dce15dc037672f817de28f1e27bcbf5a6 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 15 Jun 2002 15:37:15 +0000 Subject: [PATCH] Small memory allocation bug in openssh_encrypted() fixed. [originally from svn r1732] --- 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.45.2