projects
/
apps
/
pfixtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Can remove the sender and/or the recipient from the key of the greylister.
[apps/pfixtools.git]
/
postlicyd
/
strlist.c
diff --git
a/postlicyd/strlist.c
b/postlicyd/strlist.c
index
2349139
..
b66c33a
100644
(file)
--- a/
postlicyd/strlist.c
+++ b/
postlicyd/strlist.c
@@
-522,7
+522,7
@@
static void strlist_filter_async(rbl_result_t *result, void *arg)
--async->awaited;
debug("got asynchronous request result for filter %s, rbl %d, still awaiting %d answers",
--async->awaited;
debug("got asynchronous request result for filter %s, rbl %d, still awaiting %d answers",
- filter->name,
result - array_ptr(async->results, 0
), async->awaited);
+ filter->name,
(int)(result - array_ptr(async->results, 0)
), async->awaited);
if (async->awaited == 0) {
filter_result_t res = HTK_FAIL;
if (async->awaited == 0) {
filter_result_t res = HTK_FAIL;
@@
-621,7
+621,9
@@
static filter_result_t strlist_filter(const filter_t *filter, const query_t *que
for (uint32_t i = 0 ; len > 0 && i < config->host_offsets.len ; ++i) { \
const char *rbl = array_ptr(config->hosts, \
array_elt(config->host_offsets, i)); \
for (uint32_t i = 0 ; len > 0 && i < config->host_offsets.len ; ++i) { \
const char *rbl = array_ptr(config->hosts, \
array_elt(config->host_offsets, i)); \
- if (rhbl_check(normal, rbl, array_ptr(async->results, result_pos), \
+ debug("running check of field %s (%s) against %s", STR(Field), \
+ normal, rbl); \
+ if (rhbl_check(rbl, normal, array_ptr(async->results, result_pos), \
strlist_filter_async, context)) { \
async->error = false; \
++async->awaited; \
strlist_filter_async, context)) { \
async->error = false; \
++async->awaited; \