memcached plugin: Pass `ai_hints' to `getaddrinfo'.
authorAmit Gupta <amit.gupta221@gmail.com>
Mon, 6 Jul 2009 11:07:00 +0000 (13:07 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Mon, 6 Jul 2009 12:06:26 +0000 (14:06 +0200)
src/memcached.c

index 5af2091..2d999ce 100644 (file)
@@ -82,7 +82,7 @@ static int memcached_query_daemon (char *buffer, int buffer_size) /* {{{ */
                port = MEMCACHED_DEF_PORT;
        }
 
-       if ((ai_return = getaddrinfo (host, port, NULL, &ai_list)) != 0) {
+       if ((ai_return = getaddrinfo (host, port, &ai_hints, &ai_list)) != 0) {
                char errbuf[1024];
                ERROR ("memcached: getaddrinfo (%s, %s): %s",
                                host, port,