Skip to content

Commit 717cdb8

Browse files
authored
out_azure: fix typo which generates segv (fluent#5379)
because of typo ctx->time_key was not initialized , hence call of flb_sds_len(ctx->time_key) leads to segv see gdb output here https://pastebin.com/EqwK1Q2i (specifically Line 103) Signed-off-by: strima <[email protected]>
1 parent 531325f commit 717cdb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/out_azure/azure.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ static struct flb_config_map config_map[] = {
366366

367367
{
368368
FLB_CONFIG_MAP_STR, "time_key", FLB_AZURE_TIME_KEY,
369-
0, FLB_TRUE, offsetof(struct flb_azure, log_type),
369+
0, FLB_TRUE, offsetof(struct flb_azure, time_key),
370370
"Optional parameter to specify the key name where the timestamp will be stored."
371371
},
372372

0 commit comments

Comments
 (0)