From: Jeremy Katz Date: Mon, 3 Feb 2014 15:41:16 +0000 (-0500) Subject: redis allows passwords up to 512 characters long X-Git-Tag: collectd-5.5.0~320 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=204cf4f8f68cadeac474a75584f27b7339aca4c4;p=collectd.git redis allows passwords up to 512 characters long --- 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;