Skip to content
Snippets Groups Projects
Commit a0d50edc authored by rswindell's avatar rswindell
Browse files

Bug fix: scfg global pointer in js_msgbase.c was getting set to a dynamic instance

which would cause problems with concurrent access via Telnet and Services.
parent 0cdba40e
No related branches found
No related tags found
No related merge requests found
......@@ -516,7 +516,7 @@ bool sbbs_t::js_init()
break;
/* MsgBase Class */
if(js_CreateMsgBaseClass(js_cx, js_glob, &cfg)==NULL)
if(js_CreateMsgBaseClass(js_cx, js_glob, &scfg)==NULL)
break;
/* File Class */
......@@ -2607,7 +2607,7 @@ void node_thread(void* arg)
#ifdef JAVASCRIPT
if(sbbs->js_cx!=NULL) {
/* User class */
if(js_CreateUserClass(sbbs->js_cx, sbbs->js_glob, &sbbs->cfg)==NULL)
if(js_CreateUserClass(sbbs->js_cx, sbbs->js_glob, &scfg)==NULL)
lprintf("!JavaScript ERROR creating user class");
/* user object */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment