detect/lua: Fix max value displayed in error msg

This commit corrects an error message displayed when the key length is
out of range.
pull/12743/head
Jeff Lucovsky 8 months ago committed by Victor Julien
parent 3d26f917ee
commit e9717f3ad2

@ -269,7 +269,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)) {

Loading…
Cancel
Save