Skip to content

Commit 3473638

Browse files
joshuabairdPettitWesley
authored andcommitted
aws: imds: set length when initializing token to dummy value
Signed-off-by: Josh Baird <[email protected]>
1 parent 131fb2f commit 3473638

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/aws/flb_aws_imds.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ struct flb_aws_imds *flb_aws_imds_create(const struct flb_aws_imds_config *imds_
7070
*/
7171
ctx->imds_version = imds_config->use_imds_version;
7272
ctx->imds_v2_token = flb_sds_create_len("INVALID_TOKEN", 13);
73+
ctx->imds_v2_token_len = 13;
7374

7475
/* Detect IMDS support */
7576
if (!ec2_imds_client->upstream) {

0 commit comments

Comments
 (0)