git://git.exim.org
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c39c887
)
Correction on string comparison
author
Graeme Fowler
<graemef@exim.org>
Tue, 6 Mar 2018 15:36:55 +0000
(15:36 +0000)
committer
Graeme Fowler
<graemef@exim.org>
Tue, 6 Mar 2018 15:36:55 +0000
(15:36 +0000)
src/src/lookups/redis.c
patch
|
blob
|
history
diff --git
a/src/src/lookups/redis.c
b/src/src/lookups/redis.c
index c36b1bda72f51603644d5e9996612c1419b08b24..dcd1b659cb86abaf180ef5aa91828c7200493aeb 100644
(file)
--- 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);