free_march_list(sessions_to_kill);
DeleteHash(&(sessions_to_kill->hash_prefs));
DeleteHash(&(sessions_to_kill->IconBarSetttings));
+ FreeStrBuf(&(sessions_to_kill->UrlFragment1));
+ FreeStrBuf(&(sessions_to_kill->UrlFragment2));
+ FreeStrBuf(&(sessions_to_kill->WBuf));
+ FreeStrBuf(&(sessions_to_kill->HBuf));
pthread_mutex_unlock(&sessions_to_kill->SessionMutex);
sptr = sessions_to_kill->next;
strcpy(ptr+1, ptr+8);
}
- /** Begin parsing the request. */
-
safestrncpy(buf, req->line, sizeof buf);
- lprintf(5, "HTTP: %s\n", buf);
+ /** Begin parsing the request. */
+#ifdef TECH_PREVIEW
+ if ((strncmp(req->line+4, "/sslg", 5) != 0) &&
+ (strncmp(req->line+4, "/wholist_section", 16) != 0)) {
+#endif
+ lprintf(5, "HTTP: %s\n", buf);
+#ifdef TECH_PREVIEW
+ }
+#endif
/** Check for bogus requests */
if (is_bogus(buf)) {
TheSession->urlstrings = NULL;
TheSession->vars = NULL;
TheSession->nonce = rand();
+ TheSession->WBuf = NULL;
TheSession->next = SessionList;
SessionList = TheSession;
pthread_mutex_unlock(&SessionListMutex);
#endif
DeleteHash(&TheSession->urlstrings);
DeleteHash(&TheSession->vars);
-
+ FreeStrBuf(&TheSession->WBuf);
+ FreeStrBuf(&TheSession->HBuf);
+
+
pthread_mutex_unlock(&TheSession->SessionMutex); /* unbind */
/* Free the request buffer */