projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c7e568
)
memcached plugin: Pass `ai_hints' to `getaddrinfo'.
author
Amit Gupta
<amit.gupta221@gmail.com>
Mon, 6 Jul 2009 11:07:00 +0000
(13:07 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Mon, 6 Jul 2009 12:06:26 +0000
(14:06 +0200)
src/memcached.c
patch
|
blob
|
history
diff --git
a/src/memcached.c
b/src/memcached.c
index
5af2091
..
2d999ce
100644
(file)
--- 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,