1
0
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:
Aris Adamantiadis
2010-04-27 23:48:54 +02:00
parent 696ef7aecc
commit 4ab63d3d8c

View File

@@ -668,6 +668,8 @@ ssh_private_key privatekey_from_file(ssh_session session, const char *filename,
DSA *dsa = NULL;
RSA *rsa = NULL;
#endif
/* needed for openssl initialization */
ssh_init();
ssh_log(session, SSH_LOG_RARE, "Trying to open %s", filename);
file = fopen(filename,"r");
if (file == NULL) {