summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 87cc9fd1a..ac4d0ec30 100644
--- a/src/src/lookups/redis.c
+++ b/src/src/lookups/redis.c
@@ -211,7 +211,7 @@ perform_redis_search(uschar *command, uschar *server, uschar **resultptr,
break;
case REDIS_REPLY_INTEGER:
- ttmp = (redis_reply->integer == 1) ? US"true" : US"false";
+ ttmp = (redis_reply->integer != 0) ? US"true" : US"false";
result = string_cat(result, &ssize, &offset, US ttmp, Ustrlen(ttmp));
break;
case REDIS_REPLY_STRING: