mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
Update calls to anetResolve to include buffer size
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user