[originally from svn r1732]
int import_encrypted(char *filename, int type, char **comment)
{
if (type == SSH_KEYTYPE_OPENSSH) {
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) {
return openssh_encrypted(filename);
}
if (type == SSH_KEYTYPE_SSHCOM) {