From eaa97995d2862ecc645cdeace663d2ee2375dd1e Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Mon, 24 Sep 2012 18:59:08 +0000 Subject: [PATCH] fixed: we should check cur.request->function is not null (in5D app when testing ssl/nossl redirect) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@893 e52654a7-88a9-db11-a3e9-0013d4bc506e --- core/app.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/app.cpp b/core/app.cpp index e6b898f..c29ba60 100755 --- a/core/app.cpp +++ b/core/app.cpp @@ -238,7 +238,7 @@ bool App::ShouldNotUseSSL() return true; } - if( cur.request->function->need_ssl ) + if( cur.request->function && cur.request->function->need_ssl ) { // this winix function require SSL, so we don't make a redirect return false; @@ -273,7 +273,7 @@ bool App::ShouldUseSSL() return false; } - if( cur.request->function->need_ssl ) + if( cur.request->function && cur.request->function->need_ssl ) { // this functions require SSL, do the redirect return true;