zephyr/subsys/net/lib/http
Michael Scott 0bd961647a net: lib: http: fix check for invalid body_start pointer
Recent commit fb7f6cfa97 ("net: lib: http: Fix invalid pointer
body_start") introduced logic to reset the response body_start pointer
when the response buffer was reused.

This check needs to be fixed so that it doesn't arbitrarily change
body_start when not needed.

The problem with the current check can be demonstrated by not setting
a response callback for request which generates a large response
spanning multiple packets.

In this case body_start is still valid (not reusing the response buffer
because there is no callback set), but it will be changed when the 2nd
packet is received and the "at" marker is located at the head of the
new packet (!= response_buffer).

Signed-off-by: Michael Scott <michael.scott@linaro.org>
2017-10-27 17:42:01 -04:00
..
http_client.c net: lib: http: fix check for invalid body_start pointer 2017-10-27 17:42:01 -04:00
http_parser_url.c net: lib: http: split out URL parsing as a separate CONFIG 2017-10-17 08:08:16 -04:00
http_parser.c net: lib: http: split out URL parsing as a separate CONFIG 2017-10-17 08:08:16 -04:00
http_server.c net: http: Check that we could install recv_cb in accept 2017-10-27 15:35:59 +03:00
Kconfig net: lib: http: split out URL parsing as a separate CONFIG 2017-10-17 08:08:16 -04:00
Makefile net: lib: http: split out URL parsing as a separate CONFIG 2017-10-17 08:08:16 -04:00
README_http_parser net: lib: http: split out URL parsing as a separate CONFIG 2017-10-17 08:08:16 -04:00