summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2022-06-03 16:58:12 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2022-06-03 16:58:12 +0100
commitae80738263712ae4f7dcf6a87a99320447537cfb (patch)
tree6a6502eb637a4b2575dcc624257a8013ba2ad396 /src
parentfefbcdf583680b8522894146fc3a84b44ea48a65 (diff)
Logging: expand hosts_connection_nolog coverage
Diffstat (limited to 'src')
-rw-r--r--src/src/exim.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/src/exim.c b/src/src/exim.c
index 786d24e4f..eac0cb2b9 100644
--- a/src/src/exim.c
+++ b/src/src/exim.c
@@ -5429,7 +5429,10 @@ if (host_checking)
memset(sender_host_cache, 0, sizeof(sender_host_cache));
if (verify_check_host(&hosts_connection_nolog) == OK)
+ {
BIT_CLEAR(log_selector, log_selector_size, Li_smtp_connection);
+ BIT_CLEAR(log_selector, log_selector_size, Li_smtp_no_mail);
+ }
log_write(L_smtp_connection, LOG_MAIN, "%s", smtp_get_connection_info());
/* NOTE: We do *not* call smtp_log_no_mail() if smtp_start_session() fails,
@@ -5618,7 +5621,10 @@ if (smtp_input)
smtp_out = stdout;
memset(sender_host_cache, 0, sizeof(sender_host_cache));
if (verify_check_host(&hosts_connection_nolog) == OK)
+ {
BIT_CLEAR(log_selector, log_selector_size, Li_smtp_connection);
+ BIT_CLEAR(log_selector, log_selector_size, Li_smtp_no_mail);
+ }
log_write(L_smtp_connection, LOG_MAIN, "%s", smtp_get_connection_info());
if (!smtp_start_session())
{