X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2Fgreylist.c;h=b5dcb7b4f2f50d891182766ba2db23df8e8172ba;hb=fa576db63fb43d41bd1fa17fb58afa2a99e45f05;hp=108b02b246f2dbabd4110e27963771b366545c4a;hpb=7d041574a564b98145fc2235bd3c8676a1689911;p=apps%2Fpfixtools.git diff --git a/postlicyd/greylist.c b/postlicyd/greylist.c index 108b02b..b5dcb7b 100644 --- a/postlicyd/greylist.c +++ b/postlicyd/greylist.c @@ -78,8 +78,8 @@ static bool greylist_initialize(greylist_config_t *config, if (!tcbdbopen(config->awl_db, path, BDBOWRITER | BDBOCREAT)) { tcbdbdel(config->awl_db); config->awl_db = NULL; + return false; } - return false; } snprintf(path, sizeof(path), "%s/%sgreylist.db", directory, prefix); @@ -216,6 +216,7 @@ static bool try_greylist(const greylist_config_t *config, /* OK. */ + syslog(LOG_INFO, "client whitelisted"); return true; } } @@ -259,11 +260,13 @@ static bool try_greylist(const greylist_config_t *config, /* OK */ + syslog(LOG_INFO, "client whitelisted"); return true; } /* DUNNO */ + syslog(LOG_INFO, "client greylisted"); return false; }