Skip to content

Commit eefac86

Browse files
Leonardo Alminanaedsiper
authored andcommitted
http_client: fixed potential memory corruption
Signed-off-by: Leonardo Alminana <[email protected]>
1 parent 889afec commit eefac86

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/flb_http_client_http1.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,8 @@ int flb_http1_request_commit(struct flb_http_request *request)
479479
return -7;
480480
}
481481

482+
request_buffer = sds_result;
483+
482484
if (request->body != NULL) {
483485
sds_result = cfl_sds_cat(request_buffer,
484486
request->body,

0 commit comments

Comments
 (0)