luajit: fix crash if luaL_newstate fails

pull/79/merge
Victor Julien 12 years ago
parent b29971bc92
commit 44b7d5551a

@ -384,7 +384,7 @@ static void *DetectLuajitThreadInit(void *data) {
t->luastate = luaL_newstate();
if (t->luastate == NULL) {
SCLogError(SC_ERR_LUAJIT_ERROR, "couldn't load file: %s", lua_tostring(t->luastate, -1));
SCLogError(SC_ERR_LUAJIT_ERROR, "couldn't set up luastate");
goto error;
}

Loading…
Cancel
Save