|
@@ -1418,10 +1418,10 @@ parse_http_url(const char *headers, char **url)
|
|
|
|
|
|
/* Check if the header is well formed (next sequence
|
|
|
* should be HTTP/1.X\r\n). Assumes we're supporting 1.0? */
|
|
|
- char *e = (char *)eat_whitespace_no_nl(s);
|
|
|
{
|
|
|
unsigned minor_ver;
|
|
|
char ch;
|
|
|
+ char *e = (char *)eat_whitespace_no_nl(s);
|
|
|
if (2 != tor_sscanf(e, "HTTP/1.%u%c", &minor_ver, &ch)) {
|
|
|
return -1;
|
|
|
}
|