Skip to content

Commit

Permalink
output: do not add net.* properties to the main properties list.
Browse files Browse the repository at this point in the history
This fixes an error where empty net.* properties throw a false negative
'unknown property' error.

Signed-off-by: Phillip Whelan <[email protected]>
  • Loading branch information
pwhelan committed Nov 16, 2023
1 parent 9b9c800 commit 6f6e9b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flb_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ int flb_output_set_property(struct flb_output_instance *ins,
ins->retry_limit = 1;
}
}
else if (strncasecmp("net.", k, 4) == 0 && tmp) {
else if (strncasecmp("net.", k, 4) == 0) {
kv = flb_kv_item_create(&ins->net_properties, (char *) k, NULL);
if (!kv) {
if (tmp) {
Expand Down

0 comments on commit 6f6e9b7

Please sign in to comment.