[exim-cvs] Fix DISABLE_EVENTS build

Góra strony
Delete this message
Reply to this message
Autor: Exim Git Commits Mailing List
Data:  
Dla: exim-cvs
Temat: [exim-cvs] Fix DISABLE_EVENTS build
Gitweb: https://git.exim.org/exim.git/commitdiff/e00836bed8c0d272137531616cadcae68416fa18
Commit:     e00836bed8c0d272137531616cadcae68416fa18
Parent:     362b27d24cd7bf9094b9b25ef4d55ba592ff2af7
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Mon Aug 5 22:35:01 2024 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Mon Aug 5 22:35:01 2024 +0100


    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",

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-cvs.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-cvs-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/