summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoff Garside <geoff@geoffgarside.co.uk>2012-10-17 22:32:48 +0100
committerantirez <antirez@gmail.com>2013-07-08 15:57:22 +0200
commit2345cee33572cc5485f0b8ea190c1d8cb226bc3f (patch)
treeb006b8747cc26ea7873a3f2142b578003f300a5f
parentee5a6df101ae27f2209ae358d2b5e0e0ada1cb36 (diff)
downloadredis-2345cee33572cc5485f0b8ea190c1d8cb226bc3f.tar.gz
Update calls to anetResolve to include buffer size
-rw-r--r--src/sentinel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sentinel.c b/src/sentinel.c
index ed0978694..cb7008727 100644
--- a/src/sentinel.c
+++ b/src/sentinel.c
@@ -426,7 +426,7 @@ sentinelAddr *createSentinelAddr(char *hostname, int port) {
errno = EINVAL;
return NULL;
}
- if (anetResolve(NULL,hostname,buf) == ANET_ERR) {
+ if (anetResolve(NULL,hostname,buf,sizeof(buf)) == ANET_ERR) {
errno = ENOENT;
return NULL;
}