From 44b7d5551a73cfb804ded81a16da245f173696ca Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 20 Sep 2012 15:19:51 +0200 Subject: [PATCH] luajit: fix crash if luaL_newstate fails --- src/detect-luajit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }