Guest-login: always check the servinfo pointer before accesssing it.
[citadel.git] / webcit / auth.c
index 45c78592d34c3a8a89091ee4696bdb871ef28cc8..bce931472879525ed3a0121beb7cd780c6119828 100644 (file)
@@ -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;
        }