From 204cf4f8f68cadeac474a75584f27b7339aca4c4 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Mon, 3 Feb 2014 10:41:16 -0500 Subject: [PATCH] redis allows passwords up to 512 characters long --- src/redis.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/redis.c b/src/redis.c index 85a83546..92be18f8 100644 --- a/src/redis.c +++ b/src/redis.c @@ -37,6 +37,7 @@ #define REDIS_DEF_PORT 6379 #define REDIS_DEF_TIMEOUT 2000 #define MAX_REDIS_NODE_NAME 64 +#define MAX_REDIS_PASSWD_LENGTH 512 /* Redis plugin configuration example: * @@ -55,7 +56,7 @@ struct redis_node_s { char name[MAX_REDIS_NODE_NAME]; char host[HOST_NAME_MAX]; - char passwd[HOST_NAME_MAX]; + char passwd[MAX_REDIS_PASSWD_LENGTH]; int port; int timeout; -- 2.11.0