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 68d72aa5b1
commit 3570411def
2 changed files with 3 additions and 3 deletions

View File

@ -2353,7 +2353,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: