From: Jeremy Harris Date: Fri, 22 Mar 2024 21:11:25 +0000 (+0000) Subject: Debug: more clarity on a ret=key lookup X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/cea451c53287e51175c9bbe1a4fd607d1db7a02a Debug: more clarity on a ret=key lookup --- diff --git a/src/src/search.c b/src/src/search.c index 62416da76..27c686a5d 100644 --- a/src/src/search.c +++ b/src/src/search.c @@ -980,9 +980,15 @@ than the result. Return a de-tainted version of the key on the grounds that it have been validated by the lookup. */ if (yield && ret_key) + { yield = string_copy_taint(keystring, GET_UNTAINTED); + DEBUG(D_lookup) + debug_printf_indent("lookup yield replace by key: %s\n", yield); + } return yield; } /* End of search.c */ +/* vi: aw ai sw=2 +*/ diff --git a/test/stderr/0403 b/test/stderr/0403 index 83659eb67..c44e370e1 100644 --- a/test/stderr/0403 +++ b/test/stderr/0403 @@ -340,6 +340,7 @@ checking domains in TESTSUITE/aux-fixed/0403.accountfile creating new cache entry lookup yielded: + lookup yield replace by key: charlie@dom1.ain dom1.ain in "dom1.ain"? list element: dom1.ain dom1.ain in "dom1.ain"? yes (matched "dom1.ain") @@ -356,6 +357,7 @@ checking local_parts cached data used for lookup of charlie@dom1.ain in TESTSUITE/aux-fixed/0403.accountfile lookup yielded: + lookup yield replace by key: charlie@dom1.ain charlie in "charlie"? list element: charlie charlie in "charlie"? yes (matched "charlie")