X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fwebcit.c;h=20b4896d2ac2e3150b8dc428b8faf9346b60eb04;hb=60a1a07903435fcbbbfe4ed580dd6606a0e15786;hp=4b317d9352b2f415d7843b4c73945a09ec25c356;hpb=5a4d45f268174e4993e593b3c8200b5ea4f5aa35;p=citadel.git diff --git a/webcit/webcit.c b/webcit/webcit.c index 4b317d935..20b4896d2 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -872,7 +872,9 @@ SKIP_ALL_THIS_CRAP: * Display the appropriate landing page for this site. */ void display_default_landing_page(void) { - if (WC->serv_info->serv_supports_guest) { + wcsession *WCC = WC; + + if (WCC && WCC->serv_info && WCC->serv_info->serv_supports_guest) { /* default action. probably revisit this. */ StrBuf *teh_lobby = NewStrBufPlain(HKEY("_BASEROOM_")); smart_goto(teh_lobby);