From 0e0aa03603f2ece85835994b213e10881c0c997d Mon Sep 17 00:00:00 2001 From: GuyAv46 Date: Tue, 26 May 2026 19:15:46 +0300 Subject: [PATCH] Clarify RedisModule_GetClusterNodeInfo buffer sizes --- src/module.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/module.c b/src/module.c index 50a594987..e1ed45c46 100644 --- a/src/module.c +++ b/src/module.c @@ -9758,10 +9758,10 @@ size_t RM_GetClusterSize(void) { * is returned. * * The arguments `ip`, `master_id`, `port` and `flags` can be NULL in case we don't - * need to populate back certain info. If an `ip` and `master_id` (only populated + * need to populate back certain info. If an `ip` and/or `master_id` (only populated * if the instance is a slave) are specified, they point to buffers holding - * at least REDISMODULE_NODE_ID_LEN bytes. The strings written back as `ip` - * and `master_id` are not null terminated. + * at least INET6_ADDRSTRLEN (46) and REDISMODULE_NODE_ID_LEN bytes, respectively. + * The strings written back as `ip` and `master_id` are not null terminated. * * The list of flags reported is the following: *