]> code.citadel.org Git - citadel.git/blobdiff - webcit/context_loop.c
* handle new strbufs in wcsession correctly
[citadel.git] / webcit / context_loop.c
index fd0b0fe045ca1adcba8b556856c3663e15775967..a11b930d2873c035084d5eb201b70d896a6db006 100644 (file)
@@ -518,14 +518,11 @@ void context_loop(int *sock)
                }
                else TheSession->httpauth_pass = NewStrBufPlain(httpauth_user, -1);
 
+               TheSession->CLineBuf = NewStrBuf();
                TheSession->hash_prefs = NewHash(1,NULL);       /* Get a hash table for the user preferences */
                pthread_mutex_init(&TheSession->SessionMutex, NULL);
                pthread_mutex_lock(&SessionListMutex);
-               TheSession->urlstrings = NULL;
-               TheSession->vars = NULL;
                TheSession->nonce = rand();
-               TheSession->WBuf = NULL;
-               TheSession->CLineBuf = NewStrBuf();
                TheSession->next = SessionList;
                TheSession->is_mobile = -1;
                SessionList = TheSession;