summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2020-05-15 14:15:10 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2020-05-15 14:15:10 +0100
commite541bb4728beb40042e2adc9b2ba7d9b734e4524 (patch)
tree61ec91a26e16ec18700e10ebab26b10ee9a7f831
parent632b9f8daa4c1c9c417787ff49b0b9fcd1c6fd99 (diff)
Add debug for lookup ret=key
-rw-r--r--src/src/search.c9
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;