mirror of
https://github.com/fluencelabs/redis
synced 2025-05-02 14:02:14 +00:00
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:
parent
f1151f869e
commit
39d57c057f
@ -552,7 +552,7 @@ static void acceptCommonHandler(int fd, int flags) {
|
|||||||
|
|
||||||
void acceptTcpHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
|
void acceptTcpHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
|
||||||
int cport, cfd;
|
int cport, cfd;
|
||||||
char cip[128];
|
char cip[128]; /* Could use INET6_ADDRSTRLEN here, but its smaller */
|
||||||
REDIS_NOTUSED(el);
|
REDIS_NOTUSED(el);
|
||||||
REDIS_NOTUSED(mask);
|
REDIS_NOTUSED(mask);
|
||||||
REDIS_NOTUSED(privdata);
|
REDIS_NOTUSED(privdata);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user