From 3bbf85f29be41a56c82ff8b435289c40e40f7afa Mon Sep 17 00:00:00 2001 From: Graeme Fowler Date: Tue, 6 Mar 2018 15:36:55 +0000 Subject: [PATCH] Correction on string comparison --- src/src/lookups/redis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/src/lookups/redis.c b/src/src/lookups/redis.c index c36b1bda7..dcd1b659c 100644 --- a/src/src/lookups/redis.c +++ b/src/src/lookups/redis.c @@ -243,7 +243,7 @@ switch (redis_reply->type) *errmsg = string_sprintf("REDIS: lookup result failed: %s\n", redis_reply->str); /* trap MOVED cluster responses and follow them */ - if (Ustrncmp(redis_reply->str, "MOVED", 5)) + if (Ustrncmp(redis_reply->str, "MOVED", 5) == 0) { DEBUG(D_lookup) debug_printf("REDIS: cluster redirect %s\n", redis_reply->str); -- 2.25.1