mirror of
https://github.com/fluencelabs/redis
synced 2025-05-01 05:22:13 +00:00
Update calls to anetResolve to include buffer size
This commit is contained in:
parent
3570411def
commit
4b2e374e4a
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user