From 052073c36d33089d3a99992840c88c6245461813 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Sun, 12 Jul 2009 23:01:43 +0200 Subject: 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 --- libssh/init.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libssh/init.c') 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); -- cgit v1.2.3