aboutsummaryrefslogtreecommitdiff
path: root/libssh/init.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-12-11 21:11:23 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2009-12-11 21:11:23 +0100
commit80b6cf77b03a6a29f76bdb4768b2b2c6d7d37495 (patch)
tree418c1cea022addfb08152887f7c3f47ec0798d58 /libssh/init.c
parent79b4bf4ac2811d868c7c27830fd5538e21cb33a8 (diff)
downloadlibssh-80b6cf77b03a6a29f76bdb4768b2b2c6d7d37495.tar.gz
libssh-80b6cf77b03a6a29f76bdb4768b2b2c6d7d37495.tar.xz
libssh-80b6cf77b03a6a29f76bdb4768b2b2c6d7d37495.zip
Added a global poll context
Diffstat (limited to 'libssh/init.c')
-rw-r--r--libssh/init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libssh/init.c b/libssh/init.c
index bab9cdfb..9a584298 100644
--- a/libssh/init.c
+++ b/libssh/init.c
@@ -25,7 +25,7 @@
#include "libssh/priv.h"
#include "libssh/socket.h"
#include "libssh/dh.h"
-
+#include "libssh/poll.h"
#ifdef _WIN32
#include <winsock2.h>
#endif
@@ -63,6 +63,7 @@ int ssh_init(void) {
@returns 0 otherwise
*/
int ssh_finalize(void) {
+ ssh_free_global_poll_ctx();
ssh_regex_finalize();
ssh_crypto_finalize();
#ifdef HAVE_LIBGCRYPT