output_thread: fixed the event offset for the lookup context
@@ -300,7 +300,7 @@ static void output_thread(void *data)
}
else if (event->type == FLB_ENGINE_EV_DNS) {
struct flb_dns_lookup_context *lookup_context;
- lookup_context = (struct flb_dns_lookup_context *) event;
+ lookup_context = FLB_DNS_LOOKUP_CONTEXT_FOR_EVENT(event);
if (!lookup_context->finished) {
event->handler(event);
