diff options
author | Graeme Fowler <graemef@exim.org> | 2018-03-06 15:36:55 +0000 |
---|---|---|
committer | Graeme Fowler <graemef@exim.org> | 2018-03-06 15:36:55 +0000 |
commit | 3bbf85f29be41a56c82ff8b435289c40e40f7afa (patch) | |
tree | e7f8f2566952d6e4eda7aa1bc4e11bd384d05694 /src | |
parent | c39c88705df6f869d827dddedf925e9f64eb3320 (diff) |
Correction on string comparison
Diffstat (limited to 'src')
-rw-r--r-- | src/src/lookups/redis.c | 2 |
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); |