Skip to content
Snippets Groups Projects
Commit c7cdf522 authored by Jussi Kivilinna's avatar Jussi Kivilinna
Browse files

ubgps: aiding: fix HTTP header parser to stop parsing at end of header


If received beginning of content buffer contained "\r\n" byte sequence,
content buffer got corrupted.

Signed-off-by: default avatarJussi Kivilinna <jussi.kivilinna@haltian.com>
parent 40744e91
No related branches found
No related tags found
No related merge requests found
......@@ -332,6 +332,12 @@ static int http_parse_response(char *inbuf, size_t *len,
pInbuf = pch + substr_len;
currlen = *len - (pInbuf - inbuf);
if (updater.header_received)
{
aid_dbg("HTTP header done.\n");
break;
}
}
/* Adjust remaining length according to handled bytes */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment