summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasen Betts <jasen@xnet.co.nz>2015-12-18 13:42:27 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2015-12-18 13:42:27 +0000
commit42653575e8539e76698610e2fc36c5ebc653f074 (patch)
tree69a2a7af9e15ea6ad0cddf14a65afd78a72ef565
parentce3258931d05becb2c87f17d80ee7c4b01f5a55a (diff)
Redis: fix server-specified-in-lookup
Affects Bug 1745. Broken-by: 2d8d625b2b96
-rw-r--r--src/src/lookups/redis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/src/lookups/redis.c b/src/src/lookups/redis.c
index 91bd41fee..5f677ff06 100644
--- a/src/src/lookups/redis.c
+++ b/src/src/lookups/redis.c
@@ -209,13 +209,13 @@ if(sdata[1])
{
uschar * argv[32];
int i;
- const uschar * s;
+ const uschar * s = command;
int siz, ptr;
uschar c;
while (isspace(*s)) s++;
- for (s = command, i = 0; *s && i < nele(argv); i++)
+ for (i = 0; *s && i < nele(argv); i++)
{
for (argv[i] = NULL, siz = ptr = 0; (c = *s) && !isspace(c); s++)
if (c != '\\' || *++s) /* backslash protects next char */