From 21f932898963f98af9ae7d6b18413951736e8ba9 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 2 Jul 2014 13:16:28 +0200 Subject: [PATCH] lua: fix error handling --- src/detect-lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect-lua.c b/src/detect-lua.c index 6608501841..55bb0aec57 100644 --- a/src/detect-lua.c +++ b/src/detect-lua.c @@ -749,7 +749,7 @@ static int DetectLuaSetupPrime(DetectEngineCtx *de_ctx, DetectLuaData *ld) lua_State *luastate = luaL_newstate(); if (luastate == NULL) - goto error; + return -1; luaL_openlibs(luastate); /* hackish, needed to allow unittests to pass buffers as scripts instead of files */