From 04c21a8fe3b5027b7430cc9c706196733426bfa6 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Fri, 7 Jun 2024 23:42:02 +0100 Subject: [PATCH] Fix build with DISABLE_EVENTS --- src/src/dns.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/src/dns.c b/src/src/dns.c index 510011d51..538c0c0b4 100644 --- a/src/src/dns.c +++ b/src/src/dns.c @@ -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; } } -- 2.30.2