Skip to content

Commit

Permalink
aws: imds: set length when initializing token to dummy value
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Baird <[email protected]>
  • Loading branch information
joshuabaird authored and PettitWesley committed Jul 13, 2023
1 parent 131fb2f commit 3473638
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/aws/flb_aws_imds.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ struct flb_aws_imds *flb_aws_imds_create(const struct flb_aws_imds_config *imds_
*/
ctx->imds_version = imds_config->use_imds_version;
ctx->imds_v2_token = flb_sds_create_len("INVALID_TOKEN", 13);
ctx->imds_v2_token_len = 13;

/* Detect IMDS support */
if (!ec2_imds_client->upstream) {
Expand Down

0 comments on commit 3473638

Please sign in to comment.