Skip to content
Snippets Groups Projects
Commit f689169a authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Close socket after logging the "REFUSED SESSION from blacklisted server" msg

Fixes issue #670
parent fd3d8e57
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4857 passed
...@@ -3113,9 +3113,9 @@ static void smtp_thread(void* arg) ...@@ -3113,9 +3113,9 @@ static void smtp_thread(void* arg)
sockprintf(socket,client.protocol,session sockprintf(socket,client.protocol,session
,"550 Mail from %s refused due to listing at %s" ,"550 Mail from %s refused due to listing at %s"
,dnsbl_ip, dnsbl); ,dnsbl_ip, dnsbl);
mail_close_socket(&socket, &session);
lprintf(LOG_NOTICE,"%04d %s !REFUSED SESSION from blacklisted server (%lu total)" lprintf(LOG_NOTICE,"%04d %s !REFUSED SESSION from blacklisted server (%lu total)"
,socket, client.protocol, ++stats.sessions_refused); ,socket, client.protocol, ++stats.sessions_refused);
mail_close_socket(&socket, &session);
thread_down(); thread_down();
(void)protected_uint32_adjust(&active_clients, -1); (void)protected_uint32_adjust(&active_clients, -1);
update_clients(); update_clients();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment