From 6119309deb6946c7d19e29c883008aa88c410e66 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sat, 11 Oct 2008 21:27:51 +0200 Subject: [PATCH] Fix stupid bug. Signed-off-by: Florent Bruneau --- common/rbl.c | 1 + postlicyd/strlist.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common/rbl.c b/common/rbl.c index f0b5d55..d83d9df 100644 --- a/common/rbl.c +++ b/common/rbl.c @@ -143,6 +143,7 @@ static inline bool rbl_dns_check(const char *hostname, rbl_result_t *result, context->result = result; context->call = callback; context->data = data; + debug("running dns resolution on %s", hostname); if (ub_resolve_async(ctx, (char*)hostname, 1, 1, context, rbl_callback, NULL) == 0) { *result = RBL_ASYNC; return true; diff --git a/postlicyd/strlist.c b/postlicyd/strlist.c index 2349139..9469ad0 100644 --- a/postlicyd/strlist.c +++ b/postlicyd/strlist.c @@ -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)); \ - 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; \ -- 2.20.1