Skip to content

Commit

Permalink
Update REDIS_CLUSTER_IPLEN to INET6_ADDRSTRLEN.
Browse files Browse the repository at this point in the history
Change REDIS_CLUSTER_IPLEN to INET6_ADDRSTRLEN so that the clusterNode
ip character buffer is big enough to hold an IPv6 address.
  • Loading branch information
geoffgarside authored and antirez committed Jul 8, 2013
1 parent 23f4d90 commit 6181455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redis.h
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ typedef struct redisOpArray {
#define REDIS_CLUSTER_FAIL 1 /* The cluster can't work */
#define REDIS_CLUSTER_NAMELEN 40 /* sha1 hex length */
#define REDIS_CLUSTER_PORT_INCR 10000 /* Cluster port = baseport + PORT_INCR */
#define REDIS_CLUSTER_IPLEN INET_ADDRSTRLEN /* IPv4 address string length */
#define REDIS_CLUSTER_IPLEN INET6_ADDRSTRLEN /* IPv6 address string length */

/* The following defines are amunt of time, sometimes expressed as
* multiplicators of the node timeout value (when ending with MULT). */
Expand Down

0 comments on commit 6181455

Please sign in to comment.