[exim-cvs] Debug: more clarity on a ret=key lookup

Góra strony
Delete this message
Reply to this message
Autor: Exim Git Commits Mailing List
Data:  
Dla: exim-cvs
Temat: [exim-cvs] Debug: more clarity on a ret=key lookup
Gitweb: https://git.exim.org/exim.git/commitdiff/cea451c53287e51175c9bbe1a4fd607d1db7a02a
Commit:     cea451c53287e51175c9bbe1a4fd607d1db7a02a
Parent:     a1caa6da6f72e8c5b8b24678e32c4953a26a2b48
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Fri Mar 22 21:11:25 2024 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Fri Mar 22 21:59:34 2024 +0000


    Debug: more clarity on a ret=key lookup
---
 src/src/search.c | 6 ++++++
 test/stderr/0403 | 2 ++
 2 files changed, 8 insertions(+)


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 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@???
     in TESTSUITE/aux-fixed/0403.accountfile
   lookup yielded: 
+  lookup yield replace by key: charlie@???
 charlie in "charlie"?
  list element: charlie
  charlie in "charlie"? yes (matched "charlie")


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-cvs.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-cvs-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/