Mark ip string buffers which could be reduced.

In two places buffers have been created with a size of 128 bytes which
could be reduced to INET6_ADDRSTRLEN to still hold a full IP address.
These places have been marked as they are presently big enough to handle
the needs of storing a printable IPv6 address.
This commit is contained in:
Geoff Garside
2011-06-18 19:34:16 +01:00
committed by antirez
parent e6bf4c2676
commit f7d9a92d4e
2 changed files with 2 additions and 2 deletions

View File

@ -306,7 +306,7 @@ void freeClusterLink(clusterLink *link) {
void clusterAcceptHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
int cport, cfd;
char cip[128];
char cip[128]; /* Could use INET6_ADDRSTRLEN here, but its smaller */
clusterLink *link;
REDIS_NOTUSED(el);
REDIS_NOTUSED(mask);