From: Guus Sliepen Date: Sat, 28 Mar 2026 15:03:18 +0000 (+0100) Subject: Fix tarpitting logic detecting connections from the same host X-Git-Url: https://www.tinc-vpn.org/git/?a=commitdiff_plain;h=8a99756fd557ff5930ccd31182d39122854303a5;p=tinc Fix tarpitting logic detecting connections from the same host --- diff --git a/src/net_socket.c b/src/net_socket.c index c8aa7882..37de8739 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -702,7 +702,7 @@ static bool check_tarpit(const sockaddr_t *sa, int fd) { } } - memcpy(&prev_sa, &sa, sizeof(sa)); + prev_sa = *sa; // Check if we get many connections from different hosts