From: Amit Gupta Date: Mon, 6 Jul 2009 11:07:00 +0000 (+0200) Subject: memcached plugin: Pass `ai_hints' to `getaddrinfo'. X-Git-Tag: collectd-4.6.4~7 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=10c85e89cbd077980ae297b17a23bbc42ce5d3d5;p=collectd.git memcached plugin: Pass `ai_hints' to `getaddrinfo'. --- 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,