Update calls to anetResolve to include buffer size

This commit is contained in:
Geoff Garside 2012-10-17 22:32:48 +01:00 committed by antirez
parent ee5a6df101
commit 2345cee335

View File

@ -426,7 +426,7 @@ sentinelAddr *createSentinelAddr(char *hostname, int port) {
errno = EINVAL; errno = EINVAL;
return NULL; return NULL;
} }
if (anetResolve(NULL,hostname,buf) == ANET_ERR) { if (anetResolve(NULL,hostname,buf,sizeof(buf)) == ANET_ERR) {
errno = ENOENT; errno = ENOENT;
return NULL; return NULL;
} }