commit 72d2415: [Fix] Only check allowed fuzzy worker update ips for non-unix sockets
Timo Rothenpieler
timo at rothenpieler.org
Mon Sep 26 13:14:03 UTC 2022
Author: Timo Rothenpieler
Date: 2022-09-26 00:33:43 +0200
URL: https://github.com/rspamd/rspamd/commit/72d2415486f00a610e41f10110ff2521b1d6bcbd
[Fix] Only check allowed fuzzy worker update ips for non-unix sockets
The source will always be localhost, it makes no sense to check for
allowed IPs.
---
src/fuzzy_storage.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index 385018565..8dc27e4b4 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -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;
More information about the Commits
mailing list