Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 3c911b91 authored by Rob Swindell's avatar Rob Swindell 💬

Fix UDP buffer memory leak when max clients reached

Caught by Coverity-scan CID 330055
parent f3e4a6e4
......@@ -2247,6 +2247,7 @@ void DLLCALL services_thread(void* arg)
,service[i].protocol, host_ip, inet_addrport(&client_addr));
if(service[i].max_clients && protected_uint32_value(service[i].clients) + 1 > service[i].max_clients) {
FREE_AND_NULL(udp_buf);
lprintf(LOG_WARNING,"%04d %s !MAXIMUM CLIENTS (%u) reached, access denied"
,client_socket, service[i].protocol, service[i].max_clients);
close_socket(client_socket);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment