From 10c85e89cbd077980ae297b17a23bbc42ce5d3d5 Mon Sep 17 00:00:00 2001 From: Amit Gupta Date: Mon, 6 Jul 2009 13:07:00 +0200 Subject: [PATCH] memcached plugin: Pass `ai_hints' to `getaddrinfo'. --- src/memcached.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memcached.c b/src/memcached.c index 5af20914..2d999ce4 100644 --- a/src/memcached.c +++ b/src/memcached.c @@ -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, -- 2.30.2