task: use task tag reference
@@ -233,7 +233,7 @@ struct flb_task *flb_task_create(uint64_t ref_id,
continue;
}
- if (flb_router_match(tag_buf, tag_len, o_ins->match
+ if (flb_router_match(task->tag, task->tag_len, o_ins->match
#ifdef FLB_HAVE_REGEX
, o_ins->match_regex
#endif
