Skip to content

Commit 5de40a8

Browse files
authored
feat: fix table.unpack nil handling issue specific to LuaJIT bytecode compilation
1 parent e7fe124 commit 5de40a8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/resty/openssl/kdf.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ function _M.derive(options)
140140
end
141141

142142
for k, v in pairs(options_schema) do
143-
local v, err = check_options(options, typ, k, unpack(v))
143+
-- don't use unpack here to avoid nil truncation
144+
local v, err = check_options(options, typ, k, v[1],v[2],v[3])
144145
if err then
145146
return nil, "kdf.derive: " .. err
146147
end

0 commit comments

Comments
 (0)