]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Only check allowed fuzzy worker update ips for non-unix sockets
authorTimo Rothenpieler <timo@rothenpieler.org>
Sun, 25 Sep 2022 22:33:43 +0000 (00:33 +0200)
committerTimo Rothenpieler <timo@rothenpieler.org>
Sun, 25 Sep 2022 22:57:14 +0000 (00:57 +0200)
The source will always be localhost, it makes no sense to check for
allowed IPs.

src/fuzzy_storage.c

index 385018565cdb6bd08ea7ee2aad71220e7755ed3e..8dc27e4b4280ee5ceac7c4e11628ce37e3d15c6c 100644 (file)
@@ -363,6 +363,9 @@ rspamd_fuzzy_check_write (struct fuzzy_session *session)
        }
 
        if (session->ctx->update_ips != NULL && session->addr) {
+               if (rspamd_inet_address_get_af (session->addr) == AF_UNIX) {
+                       return TRUE;
+               }
                if (rspamd_match_radix_map_addr (session->ctx->update_ips,
                                session->addr) == NULL) {
                        return FALSE;