Skip to content

Commit

Permalink
detect/lua: Fix max value displayed in error msg
Browse files Browse the repository at this point in the history
This commit corrects an error message displayed when the key length is
out of range.
  • Loading branch information
jlucovsky committed Jan 9, 2025
1 parent 40e30d0 commit 30fbca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/detect-lua-extensions.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 30fbca4

Please sign in to comment.