[exim-cvs] Add debug for lookup ret=key

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Git Commits Mailing List
Datum:  
To: exim-cvs
Betreff: [exim-cvs] Add debug for lookup ret=key
Gitweb: https://git.exim.org/exim.git/commitdiff/e541bb4728beb40042e2adc9b2ba7d9b734e4524
Commit:     e541bb4728beb40042e2adc9b2ba7d9b734e4524
Parent:     632b9f8daa4c1c9c417787ff49b0b9fcd1c6fd99
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Fri May 15 14:15:10 2020 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Fri May 15 14:15:10 2020 +0100


    Add debug for lookup ret=key
---
 src/src/search.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)


diff --git a/src/src/search.c b/src/src/search.c
index 94a5889..f8aaacb 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;