From: Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> Date: Tue, 21 Apr 2026 18:00:16 +0000 (+0200) Subject: [Fix] Do not block allowed clients on TCP fuzzy X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5992%2Fhead;p=thirdparty%2Frspamd.git [Fix] Do not block allowed clients on TCP fuzzy Signed-off-by: Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> --- diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index 715479576a..6bffdc681c 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -2374,7 +2374,8 @@ accept_tcp_socket(EV_P_ ev_io *w, int revents) } /* Check if client is allowed */ - if (!rspamd_fuzzy_check_client(ctx, addr)) { + int block_code = rspamd_fuzzy_check_client(ctx, addr); + if (block_code > 0) { msg_info("refusing TCP connection from %s (blacklisted)", rspamd_inet_address_to_string(addr)); rspamd_inet_address_free(addr);