From e00836bed8c0d272137531616cadcae68416fa18 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Mon, 5 Aug 2024 22:35:01 +0100 Subject: [PATCH] Fix DISABLE_EVENTS build Broken-by: 19c4ea037946 --- src/src/smtp_in.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c index 076ea423a..521bc05aa 100644 --- a/src/src/smtp_in.c +++ b/src/src/smtp_in.c @@ -2765,9 +2765,11 @@ synprot_error(int type, int code, uschar *data, uschar *errmess) { int yield = -1; +#ifndef DISABLE_EVENT event_raise(event_action, L_smtp_syntax_error ? US"smtp:fail:syntax" : US"smtp:fail:protocol", errmess, NULL); +#endif log_write(type, LOG_MAIN, "SMTP %s error in \"%s\" %s %s", type == L_smtp_syntax_error ? "syntax" : "protocol", -- 2.30.2