Fix SEGV in handle_proxy_request

This commit is contained in:
valenok committed 2011-06-28 15:33:40 +01:00
1 parent a844115043
commit 99f5f11612
1 file changed
+3 -2
+3 -2
View File
@@ -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;
}