diff options
author | Geoff Garside <geoff@geoffgarside.co.uk> | 2012-10-17 22:32:48 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2013-07-08 15:57:22 +0200 |
commit | 2345cee33572cc5485f0b8ea190c1d8cb226bc3f (patch) | |
tree | b006b8747cc26ea7873a3f2142b578003f300a5f | |
parent | ee5a6df101ae27f2209ae358d2b5e0e0ada1cb36 (diff) | |
download | redis-2345cee33572cc5485f0b8ea190c1d8cb226bc3f.tar.gz |
Update calls to anetResolve to include buffer size
-rw-r--r-- | src/sentinel.c | 2 |
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; } |