Skip to content

Commit

Permalink
in_forward: clear out_tag before using(#4670)
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro Yamashita <[email protected]>
  • Loading branch information
nokute78 authored and edsiper committed Jan 24, 2022
1 parent d5f2c65 commit db194f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/in_forward/fw_prot.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ int fw_prot_process(struct fw_conn *conn)
stag_len = tag.via.str.size;

/* Copy the tag to the new buffer, prefix it if required */
flb_sds_len_set(out_tag, 0); /* clear out_tag before using */
if (ctx->tag_prefix) {
flb_sds_cat_safe(&out_tag,
ctx->tag_prefix, flb_sds_len(ctx->tag_prefix));
Expand Down

0 comments on commit db194f7

Please sign in to comment.