mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-23 11:44:53 +00:00
Fix SEGV in handle_proxy_request
This commit is contained in:
1 parent
a844115043
commit
99f5f11612
1 file changed
+3
-2
+3
-2
@@ -3771,8 +3771,9 @@ static void handle_proxy_request(struct mg_connection *conn) {
|
||||
int port, is_ssl, len, i, n;
|
||||
|
||||
DEBUG_TRACE(("URL: %s", ri->uri));
|
||||
if (conn->request_info.uri[0] == '/' ||
|
||||
(ri->uri == NULL || (len = parse_url(ri->uri, host, &port))) == 0) {
|
||||
if (ri->uri == NULL ||
|
||||
ri->uri[0] == '/' ||
|
||||
(len = parse_url(ri->uri, host, &port)) == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user