From: Jeremy Harris Date: Fri, 15 May 2020 13:15:10 +0000 (+0100) Subject: Add debug for lookup ret=key X-Git-Url: https://git.exim.org/users/jgh/exim.git/commitdiff_plain/e541bb4728beb40042e2adc9b2ba7d9b734e4524?ds=inline Add debug for lookup ret=key --- 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;