diff --git a/src/common/fortconf.c b/src/common/fortconf.c index 3b2e3ffa..00117c76 100644 --- a/src/common/fortconf.c +++ b/src/common/fortconf.c @@ -117,9 +117,11 @@ fort_conf_app_blocked (const PFORT_CONF conf, const BOOL app_perm_allowed = (app_perm & conf->app_perms_allow_mask); const BOOL app_allowed = conf->flags.app_allow_all ? TRUE : app_perm_allowed; - *notify = app_blocked && conf->flags.app_log_blocked; + const BOOL blocked = app_blocked && !app_allowed; - return app_blocked && !app_allowed; + *notify = blocked && conf->flags.app_log_blocked; + + return blocked; } static void