Skip to content

Commit

Permalink
http_client: check first if pointer is not exceeding limit
Browse files Browse the repository at this point in the history
- then test its value not to be null char

(cherry picked from commit 47a776e)
  • Loading branch information
miconda committed Mar 28, 2016
1 parent b667c76 commit f229c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/http_client/curlcon.c
Expand Up @@ -575,7 +575,7 @@ int fixup_raw_http_client_conn_list(void)
schema.s = raw_cc->url.s;
pos = schema.s;
end = raw_cc->url.s + raw_cc->url.len;
while (pos != '\0' && (pos < end))
while ((pos < end) && (*pos != '\0'))
{
if (*pos == ':') break;
pos++;
Expand Down

0 comments on commit f229c60

Please sign in to comment.