Debug: add trace in the inlist expansion condition
authorJeremy Harris <jgh146exb@wizmail.org>
Thu, 26 Oct 2017 13:47:11 +0000 (14:47 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Thu, 26 Oct 2017 13:47:11 +0000 (14:47 +0100)
src/src/expand.c
src/src/tls-openssl.c

index bae3114a661cb3ac9655d75d29ccdd4f70103c94..28d12d4d4d5a7ffe1edeb2c1b637806d6916a0ec 100644 (file)
@@ -2821,18 +2821,21 @@ switch(cond_type)
       uschar *save_iterate_item = iterate_item;
       int (*compare)(const uschar *, const uschar *);
 
-      DEBUG(D_expand) debug_printf_indent("condition: %s\n", name);
+      DEBUG(D_expand) debug_printf_indent("condition: %s  item: %s\n", name, sub[0]);
 
       tempcond = FALSE;
       compare = cond_type == ECOND_INLISTI
         ? strcmpic : (int (*)(const uschar *, const uschar *)) strcmp;
 
       while ((iterate_item = string_nextinlist(&list, &sep, NULL, 0)))
+       {
+       DEBUG(D_expand) debug_printf_indent(" compare %s\n", iterate_item);
         if (compare(sub[0], iterate_item) == 0)
           {
           tempcond = TRUE;
           break;
           }
+       }
       iterate_item = save_iterate_item;
       }
 
index 6f10cf5f7d03ca0bba0fd30c36f3d6ee06d0c050..58401e93289d5018d036b956d34fe2b2b851cc88 100644 (file)
@@ -29,7 +29,7 @@ functions from the OpenSSL library. */
 # include <openssl/ocsp.h>
 #endif
 #ifdef EXPERIMENTAL_DANE
-# include <danessl.h>
+# include "danessl.h"
 #endif