From: Vsevolod Stakhov Date: Wed, 8 Jul 2015 13:17:49 +0000 (+0100) Subject: Fix bug when unix sockets were not whitelisted. X-Git-Tag: 1.0.0~420 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5217952d30e73c463f9f83c8c891c4c9bdc5881d;p=thirdparty%2Frspamd.git Fix bug when unix sockets were not whitelisted. --- diff --git a/src/controller.c b/src/controller.c index 03e1746373..456de29288 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; }