Commit 99f5f116 authored by valenok's avatar valenok

Fix SEGV in handle_proxy_request

parent a8441150
...@@ -3771,8 +3771,9 @@ static void handle_proxy_request(struct mg_connection *conn) { ...@@ -3771,8 +3771,9 @@ static void handle_proxy_request(struct mg_connection *conn) {
int port, is_ssl, len, i, n; int port, is_ssl, len, i, n;
DEBUG_TRACE(("URL: %s", ri->uri)); DEBUG_TRACE(("URL: %s", ri->uri));
if (conn->request_info.uri[0] == '/' || if (ri->uri == NULL ||
(ri->uri == NULL || (len = parse_url(ri->uri, host, &port))) == 0) { ri->uri[0] == '/' ||
(len = parse_url(ri->uri, host, &port)) == 0) {
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment