diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-07-12 23:01:43 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-07-12 23:01:43 +0200 |
commit | 052073c36d33089d3a99992840c88c6245461813 (patch) | |
tree | 1689458244df3e4671343112cfbd71aad558aad8 /libssh/init.c | |
parent | 60c778ad7fa198ad0bf6f5a718a69623134c825c (diff) | |
download | libssh-052073c36d33089d3a99992840c88c6245461813.tar.gz libssh-052073c36d33089d3a99992840c88c6245461813.tar.xz libssh-052073c36d33089d3a99992840c88c6245461813.zip |
Set correct hint when connecting to an IP address
libssh now uses a regular expression against destination
hostnames to match numerical IP addresses and set the
appropriate hint.
Patches also add init and finalize code to compile the regexp
Diffstat (limited to 'libssh/init.c')
-rw-r--r-- | libssh/init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libssh/init.c b/libssh/init.c index 8d2ae032..1969d45e 100644 --- a/libssh/init.c +++ b/libssh/init.c @@ -43,6 +43,8 @@ int ssh_init(void) { return -1; if(ssh_socket_init()) return -1; + if(ssh_regex_init()) + return -1; return 0; } @@ -56,6 +58,7 @@ int ssh_init(void) { @returns 0 otherwise */ int ssh_finalize(void) { + ssh_regex_finalize(); ssh_crypto_finalize(); #ifdef HAVE_LIBGCRYPT gcry_control(GCRYCTL_TERM_SECMEM); |