aboutsummaryrefslogtreecommitdiff
path: root/libssh/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/init.c')
-rw-r--r--libssh/init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libssh/init.c b/libssh/init.c
index 15a2aea7..d8e77228 100644
--- a/libssh/init.c
+++ b/libssh/init.c
@@ -26,6 +26,8 @@
#include "libssh/socket.h"
#include "libssh/dh.h"
#include "libssh/poll.h"
+#include "libssh/threads.h"
+
#ifdef _WIN32
#include <winsock2.h>
#endif
@@ -49,6 +51,8 @@
* @returns 0 on success, -1 if an error occured.
*/
int ssh_init(void) {
+ if(ssh_threads_init())
+ return -1;
if(ssh_crypto_init())
return -1;
if(ssh_socket_init())