Skip to content

Commit 66589e1

Browse files
authored
oauth2: add missing code to clear sds string (#3291)
Context: #3267 Signed-off-by: Henrique S Matulis <[email protected]>
1 parent 491889b commit 66589e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/flb_oauth2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ struct flb_oauth2 *flb_oauth2_create(struct flb_config *config,
242242
/* Clear the current payload and token */
243243
void flb_oauth2_payload_clear(struct flb_oauth2 *ctx)
244244
{
245+
flb_sds_len_set(ctx->payload, 0);
245246
ctx->payload[0] = '\0';
246247
ctx->expires_in = 0;
247248
if (ctx->access_token){

0 commit comments

Comments
 (0)