projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a4d45f
)
Fix Crash; don't access pointers before checking them for NULL
author
Wilfried Goesgens
<dothebart@citadel.org>
Thu, 10 Mar 2011 07:43:56 +0000
(08:43 +0100)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Sun, 4 Sep 2011 14:51:28 +0000
(14:51 +0000)
webcit/webcit.c
patch
|
blob
|
history
diff --git
a/webcit/webcit.c
b/webcit/webcit.c
index 4b317d9352b2f415d7843b4c73945a09ec25c356..20b4896d2ac2e3150b8dc428b8faf9346b60eb04 100644
(file)
--- 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);