From: Jeremy Harris Date: Fri, 7 Jun 2024 22:42:02 +0000 (+0100) Subject: Fix build with DISABLE_EVENTS X-Git-Tag: exim-4.98-RC1~8 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/04c21a8fe3b5027b7430cc9c706196733426bfa6?ds=sidebyside Fix build with DISABLE_EVENTS --- 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; } }