mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
Added first unittest-based bug found :)
This commit is contained in:
@@ -668,6 +668,8 @@ ssh_private_key privatekey_from_file(ssh_session session, const char *filename,
|
|||||||
DSA *dsa = NULL;
|
DSA *dsa = NULL;
|
||||||
RSA *rsa = NULL;
|
RSA *rsa = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
/* needed for openssl initialization */
|
||||||
|
ssh_init();
|
||||||
ssh_log(session, SSH_LOG_RARE, "Trying to open %s", filename);
|
ssh_log(session, SSH_LOG_RARE, "Trying to open %s", filename);
|
||||||
file = fopen(filename,"r");
|
file = fopen(filename,"r");
|
||||||
if (file == NULL) {
|
if (file == NULL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user