aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-08 14:17:49 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-08 14:17:49 +0100
commit5217952d30e73c463f9f83c8c891c4c9bdc5881d (patch)
tree8ffceb90ed3a69274842d178d65887d17e40b296 /src
parent1d5ca1753f540e71babc7c94563ec69852f7a8e9 (diff)
downloadrspamd-5217952d30e73c463f9f83c8c891c4c9bdc5881d.tar.gz
rspamd-5217952d30e73c463f9f83c8c891c4c9bdc5881d.zip
Fix bug when unix sockets were not whitelisted.
Diffstat (limited to 'src')
-rw-r--r--src/controller.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controller.c b/src/controller.c
index 03e174637..456de2928 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -297,7 +297,7 @@ static gboolean rspamd_controller_check_password(
const struct rspamd_controller_pbkdf *pbkdf = NULL;
/* Access list logic */
- if (!rspamd_inet_address_get_af (session->from_addr) == AF_UNIX) {
+ if (rspamd_inet_address_get_af (session->from_addr) == AF_UNIX) {
msg_info ("allow unauthorized connection from a unix socket");
return TRUE;
}