summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/src/lookups/redis.c2
1 files changed, 1 insertions, 1 deletions
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);