1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

legacy: Fix possible segfault with publickey_from_file().

This function is obsolete.
This commit is contained in:
Andreas Schneider
2011-09-18 21:34:39 +02:00
parent f61269a2ef
commit 3622ac83f6

View File

@@ -487,7 +487,9 @@ ssh_string publickey_from_file(ssh_session session, const char *filename,
return NULL;
}
*type = key->type;
if (type) {
*type = key->type;
}
ssh_key_free(key);
return key_str;