X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/6e09ad1c156f10246ccd0f2de5b11a9635e28818..dfc25454701638d39bc75fbc3f9c55619b503bd0:/src/networking.c?ds=inline diff --git a/src/networking.c b/src/networking.c index d8fb8132..40aad836 100644 --- a/src/networking.c +++ b/src/networking.c @@ -1087,11 +1087,7 @@ sds getClientInfoString(redisClient *client) { time_t now = time(NULL); int emask; - if (anetPeerToString(client->fd,ip,&port) == -1) { - ip[0] = '?'; - ip[1] = '\0'; - port = 0; - } + anetPeerToString(client->fd,ip,&port); p = flags; if (client->flags & REDIS_SLAVE) { if (client->flags & REDIS_MONITOR)