Update calls to anetPeerToString to include ip_len.

This commit is contained in:
Geoff Garside
2012-10-17 22:32:21 +01:00
committed by antirez
parent b39e827d22
commit ee5a6df101
2 changed files with 3 additions and 3 deletions

View File

@ -2428,7 +2428,7 @@ sds genRedisInfoString(char *section) {
int port;
long lag = 0;
if (anetPeerToString(slave->fd,ip,&port) == -1) continue;
if (anetPeerToString(slave->fd,ip,sizeof(ip),&port) == -1) continue;
switch(slave->replstate) {
case REDIS_REPL_WAIT_BGSAVE_START:
case REDIS_REPL_WAIT_BGSAVE_END: