X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fauth.c;fp=webcit%2Fauth.c;h=bce931472879525ed3a0121beb7cd780c6119828;hb=6878964fa59b4447bc13f7433baf92888247f20a;hp=45c78592d34c3a8a89091ee4696bdb871ef28cc8;hpb=1e23f5fcbe1d0c8c2059e8c703dae3266549a537;p=citadel.git diff --git a/webcit/auth.c b/webcit/auth.c index 45c78592d..bce931472 100644 --- a/webcit/auth.c +++ b/webcit/auth.c @@ -499,7 +499,7 @@ void do_logout(void) /* Calling output_headers() this way causes the cookies to be un-set */ output_headers(1, 1, 0, 1, 0, 0); do_template("logout"); - if (WC->serv_info->serv_supports_guest) { + if ((WCC->serv_info != NULL) && WCC->serv_info->serv_supports_guest) { display_default_landing_page(); return; }