projects
/
apps
/
pfixtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More logs in greylister... need tests.
[apps/pfixtools.git]
/
postlicyd
/
greylist.c
diff --git
a/postlicyd/greylist.c
b/postlicyd/greylist.c
index
108b02b
..
b5dcb7b
100644
(file)
--- 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;
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);
}
snprintf(path, sizeof(path), "%s/%sgreylist.db", directory, prefix);
@@
-216,6
+216,7
@@
static bool try_greylist(const greylist_config_t *config,
/* OK.
*/
/* OK.
*/
+ syslog(LOG_INFO, "client whitelisted");
return true;
}
}
return true;
}
}
@@
-259,11
+260,13
@@
static bool try_greylist(const greylist_config_t *config,
/* OK
*/
/* OK
*/
+ syslog(LOG_INFO, "client whitelisted");
return true;
}
/* DUNNO
*/
return true;
}
/* DUNNO
*/
+ syslog(LOG_INFO, "client greylisted");
return false;
}
return false;
}