FreeStrBuf(&con->MigrateBuf);
FreeStrBuf(&con->ReadBuf);
- FreeStrBuf(&con->lBuf);
CtdlLogPrintf(CTDL_DEBUG, "Done with RemoveContext()\n");
}
return NULL;
}
memset(me, 0, sizeof(CitContext));
- me->lBuf = NewStrBufPlain(NULL, SIZ);
/* Give the contaxt a name. Hopefully makes it easier to track */
strcpy (me->user.fullname, "SYS_notauth");
long len;
memset(context, 0, sizeof(CitContext));
- context->lBuf = NewStrBuf();
context->internal_pgm = 1;
context->cs_pid = 0;
strcpy (sysname, "SYS_");
}
}
+/*
+ * flush it again...
+ */
+void CtdlClearSystemContext(void)
+{
+ CitContext *CCC = MyContext();
+
+ memset(CCC, 0, sizeof(CitContext));
+ citthread_setspecific(MyConKey, NULL);
+}
+
/*
* Cleanup any contexts that are left lying around
*/
memset(&masterCC, 0, sizeof( CitContext));
masterCC.internal_pgm = 1;
masterCC.cs_pid = 0;
- masterCC.lBuf = NewStrBuf ();
}