Fix build with DISABLE_EVENTS
authorJeremy Harris <jgh146exb@wizmail.org>
Fri, 7 Jun 2024 22:42:02 +0000 (23:42 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Fri, 7 Jun 2024 22:42:02 +0000 (23:42 +0100)
src/src/dns.c

index 510011d51ede740c1a33391d8e1f27d959965e9d..538c0c0b44e244f23fc4a771c018a8ccb6de9a48 100644 (file)
@@ -1135,6 +1135,7 @@ errstr = US"cname_loop";
 
 not_good:
   {
+#ifndef DISABLE_EVENTS
   const uschar * s = NULL;
   BOOL save_flag = f.search_find_defer;
   uschar * save_serr = search_error_message;
@@ -1167,6 +1168,7 @@ not_good:
   /*XXX what other state could an expansion in the eventhandler mess up? */
   search_error_message = save_serr;
   f.search_find_defer = save_flag;
+#endif /*EVENTS*/
   return rc;
   }
 }