Skip to content
Commit fb7f6cfa authored by Ding Tao's avatar Ding Tao Committed by Jukka Rissanen
Browse files

net: lib: http: Fix invalid pointer body_start



The body_start field at http_client_ctx.rsp is used to check if this
fragment contains (a part of) headers or not.

If the device recived more than one fragment in one http response,
may cause re-use of the result buffer in function on_body().

Once the device re-use the result buffer, the body_start that point
to this buffer address will no longer be valid.

Signed-off-by: default avatarDing Tao <miyatsu@qq.com>
parent 87c4515f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment