diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2020-05-15 14:15:10 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2020-05-15 14:15:10 +0100 |
commit | e541bb4728beb40042e2adc9b2ba7d9b734e4524 (patch) | |
tree | 61ec91a26e16ec18700e10ebab26b10ee9a7f831 /src | |
parent | 632b9f8daa4c1c9c417787ff49b0b9fcd1c6fd99 (diff) |
Add debug for lookup ret=key
Diffstat (limited to 'src')
-rw-r--r-- | src/src/search.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/src/search.c b/src/src/search.c index 94a58897f..f8aaacb04 100644 --- a/src/src/search.c +++ b/src/src/search.c @@ -846,10 +846,13 @@ it have been validated by the lookup. */ if (yield && opts) { int sep = ','; - uschar * ele; - while ((ele = string_nextinlist(&opts, &sep, NULL, 0))) + for (uschar * ele; ele = string_nextinlist(&opts, &sep, NULL, 0); ) if (Ustrcmp(ele, "ret=key") == 0) - { yield = string_copy_taint(keystring, FALSE); break; } + { + DEBUG(D_lookup) debug_printf_indent("lookup ret=key: %s\n", keystring); + yield = string_copy_taint(keystring, FALSE); + break; + } } return yield; |