Commit 2345cee3 authored by Geoff Garside's avatar Geoff Garside Committed by antirez
Browse files

Update calls to anetResolve to include buffer size

parent ee5a6df1
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment