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:
@@ -487,7 +487,9 @@ ssh_string publickey_from_file(ssh_session session, const char *filename,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (type) {
|
||||
*type = key->type;
|
||||
}
|
||||
ssh_key_free(key);
|
||||
|
||||
return key_str;
|
||||
|
Reference in New Issue
Block a user