X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcontext_loop.c;h=a85c87b8ef186c5c67fb530c7323954b6c280da8;hb=20fecd19b462c6aee88abcc6243666a1bc2b9fee;hp=c844f65a74075df3f876029f66cd12ea26239dc2;hpb=08ceff759cbeb9a05d9adef01d391b2778c89162;p=citadel.git diff --git a/webcit/context_loop.c b/webcit/context_loop.c index c844f65a7..a85c87b8e 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -52,6 +52,8 @@ void DestroySession(wcsession **sessions_to_kill) FreeStrBuf(&((*sessions_to_kill)->wc_roomname)); FreeStrBuf(&((*sessions_to_kill)->httpauth_user)); FreeStrBuf(&((*sessions_to_kill)->httpauth_pass)); + FreeStrBuf(&((*sessions_to_kill)->ImportantMsg)); + FreeStrBuf(&((*sessions_to_kill)->cs_inet_email)); free((*sessions_to_kill)); (*sessions_to_kill) = NULL; } @@ -537,6 +539,8 @@ void context_loop(int *sock) pthread_mutex_lock(&TheSession->SessionMutex); /* bind */ pthread_setspecific(MyConKey, (void *)TheSession); + if (TheSession->ImportantMsg == NULL) + TheSession->ImportantMsg = NewStrBuf(); TheSession->urlstrings = NewHash(1,NULL); TheSession->vars = NewHash(1,NULL); TheSession->http_sock = *sock;