--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;
bool error = true;
if (parse_ipv4(query->client_address, &end, &ip) != 0) {
+ if (strchr(query->client_address, ':')) {
+ /* iplist only works on IPv4 */
+ return HTK_FAIL;
+ }
warn("invalid client address: %s, expected ipv4",
query->client_address);
return HTK_ERROR;
static void iplist_context_destructor(void *data)
{
iplist_async_data_t *ctx = data;
+ array_wipe(ctx->results);
p_delete(&ctx);
}