summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;