]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Typo
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 1 Oct 2017 05:51:55 +0000 (13:51 +0800)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 1 Oct 2017 05:51:55 +0000 (13:51 +0800)
src/modules/rlm_redis/cluster.c

index 1c2a8aa586cc3431068aa7e9b47e5f04fa04006a..02734a061f898a4b72793156c19cae712df0c27e 100644 (file)
@@ -783,7 +783,7 @@ static int cluster_map_node_validate(redisReply *node, int map_idx, int node_idx
         *  Similarly a client library should try if possible to cope with the fact 
         *  that older versions may just have the IP and port parameter.
         */
-       if (node->elements >= 2) {
+       if (node->elements < 2) {
                fr_strerror_printf("Cluster map %i node %i has incorrect number of elements, expected at least "
                                   "2 got %zu", map_idx, node_idx, node->elements);
                return CLUSTER_OP_BAD_INPUT;