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_");
strcat (sysname, name);
len = cutuserkey(sysname);
+ memcpy(context->curr_user, sysname, len + 1);
+
/* internal_create_user has the side effect of loading the user regardless of wether they
* already existed or needed to be created
*/
memset(&masterCC, 0, sizeof( CitContext));
masterCC.internal_pgm = 1;
masterCC.cs_pid = 0;
+ masterCC.lBuf = NewStrBuf ();
}