Skip to content

Commit

Permalink
http_client: fixed potential memory corruption
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <[email protected]>
  • Loading branch information
leonardo-albertovich authored and edsiper committed Nov 19, 2024
1 parent 889afec commit eefac86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/flb_http_client_http1.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,8 @@ int flb_http1_request_commit(struct flb_http_request *request)
return -7;
}

request_buffer = sds_result;

if (request->body != NULL) {
sds_result = cfl_sds_cat(request_buffer,
request->body,
Expand Down

0 comments on commit eefac86

Please sign in to comment.