projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Complicate the license explanation even further
[privoxy.git]
/
urlmatch.c
diff --git
a/urlmatch.c
b/urlmatch.c
index
4886e4c
..
23a6b54
100644
(file)
--- a/
urlmatch.c
+++ b/
urlmatch.c
@@
-302,7
+302,7
@@
jb_err parse_http_url(const char *url, struct http_request *http, int require_pr
url_path
);
*url_path = '\0';
url_path
);
*url_path = '\0';
- http->hostport = str
dup_or_die
(url_noproto);
+ http->hostport = str
ing_tolower
(url_noproto);
}
else
{
}
else
{
@@
-311,10
+311,15
@@
jb_err parse_http_url(const char *url, struct http_request *http, int require_pr
* or CONNECT requests
*/
http->path = strdup_or_die("/");
* or CONNECT requests
*/
http->path = strdup_or_die("/");
- http->hostport = str
dup_or_die
(url_noproto);
+ http->hostport = str
ing_tolower
(url_noproto);
}
freez(buf);
}
freez(buf);
+
+ if (http->hostport == NULL)
+ {
+ return JB_ERR_PARSE;
+ }
}
if (!host_available)
}
if (!host_available)