chg: known key is treated as a string.

This commit is contained in:
iceman1001 2017-01-25 01:11:34 +01:00
parent e36b07efc4
commit f364f71294

View file

@ -168,7 +168,7 @@ function main(args)
-- or actually blockNo and keytype -- or actually blockNo and keytype
-- just try default for now -- just try default for now
if sector == 1 and targetkeytype == 0 then if sector == 1 and targetkeytype == 0 then
keyA = key keyA = tonumber(key)
else else
local err, foundkey = core.hardnested(blockno, keytype, key, trgblockno, tostring(targetkeytype), trgkey, 0,0,0,0) local err, foundkey = core.hardnested(blockno, keytype, key, trgblockno, tostring(targetkeytype), trgkey, 0,0,0,0)
foundkey = foundkey or "" foundkey = foundkey or ""