file_map_t map;
const char *p, *end;
char line[BUFSIZ];
+ uint32_t count = 0;
if (!file_map_open(&map, file, false)) {
return NULL;
if (p < eos) {
strlist_copy(line, p, eos - p, reverse);
trie_insert(db, line);
+ ++count;
}
}
p = eol + 1;
}
file_map_close(&map);
trie_compile(db, lock);
+ info("%s loaded, %u entries", file, count);
return db;
}
trie_delete(&domains);
*pdomains = NULL;
}
+ info("rhbl %s loaded, %u hosts, %u domains", file, host_count, domain_count);
return hosts != NULL || domains != NULL;
}
--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;
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; \