From 30fbca40a9aa63db4285c50b9c1794f89c8fb376 Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Wed, 8 Jan 2025 09:27:10 -0500 Subject: [PATCH] detect/lua: Fix max value displayed in error msg This commit corrects an error message displayed when the key length is out of range. --- src/detect-lua-extensions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect-lua-extensions.c b/src/detect-lua-extensions.c index 9dd63f560c4e..367fb68d403c 100644 --- a/src/detect-lua-extensions.c +++ b/src/detect-lua-extensions.c @@ -298,7 +298,7 @@ static int LuaSetFlowvarByKey(lua_State *luastate) } keylen = lua_tonumber(luastate, 2); if (keylen < 0 || keylen > 0xff) { - LUA_ERROR("key len out of range: max 256"); + LUA_ERROR("key len out of range: max 255"); } if (!lua_isstring(luastate, 3)) {