[exim-dev] [Bug 1745] redis expansions taking arbitrary para…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: admin
Dátum:  
Címzett: exim-dev
Tárgy: [exim-dev] [Bug 1745] redis expansions taking arbitrary parameters
https://bugs.exim.org/show_bug.cgi?id=1745

--- Comment #7 from Git Commit <git@???> ---
Git commit:
http://git.exim.org/exim.git/commitdiff/42653575e8539e76698610e2fc36c5ebc653f074

commit 42653575e8539e76698610e2fc36c5ebc653f074
Author:     Jasen Betts <jasen@???>
AuthorDate: Fri Dec 18 13:42:27 2015 +0000
Commit:     Jeremy Harris <jgh146exb@???>
CommitDate: Fri Dec 18 13:42:27 2015 +0000


    Redis: fix server-specified-in-lookup


    Affects Bug 1745.  Broken-by: 2d8d625b2b96
---
 src/src/lookups/redis.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


diff --git a/src/src/lookups/redis.c b/src/src/lookups/redis.c
index 91bd41f..5f677ff 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 */


--
You are receiving this mail because:
You are on the CC list for the bug.