From 99f5f116125003389716e5f720f998bbb5cf2714 Mon Sep 17 00:00:00 2001 From: valenok Date: Tue, 28 Jun 2011 15:33:40 +0100 Subject: [PATCH] Fix SEGV in handle_proxy_request --- mongoose.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mongoose.c b/mongoose.c index 14f34be9..aec73683 100644 --- a/mongoose.c +++ b/mongoose.c @@ -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; }