From: Victor Julien Date: Thu, 20 Sep 2012 13:19:51 +0000 (+0200) Subject: luajit: fix crash if luaL_newstate fails X-Git-Tag: suricata-1.4beta2~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=44b7d5551a73cfb804ded81a16da245f173696ca;p=thirdparty%2Fsuricata.git luajit: fix crash if luaL_newstate fails --- diff --git a/src/detect-luajit.c b/src/detect-luajit.c index f293c048ae..3584996b47 100644 --- a/src/detect-luajit.c +++ b/src/detect-luajit.c @@ -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; }