]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
CHG: added a check if err variable is NIL.
authoriceman1001 <iceman@iuse.se>
Tue, 22 Nov 2016 10:55:23 +0000 (11:55 +0100)
committericeman1001 <iceman@iuse.se>
Tue, 22 Nov 2016 10:55:23 +0000 (11:55 +0100)
client/scripts/hard.lua

index 93d07a72922fc762927d225a4395e0a0d2e51708..1d8177722704b6ad426f77550424a5c6d3001c91 100644 (file)
@@ -156,11 +156,11 @@ function main(args)
                local succB = 1
                local errA, keyA = core.hardnested(blockno, keytype, key, trgblockno, '0', trgkey, 0,0,0,0)
                keyA = keyA or ""
-               if errA > 0 then succA = 0 end
+               if errA == nil or errA > 0 then succA = 0 end
 
                local errB, keyB = core.hardnested(blockno, keytype, key, trgblockno, '1', trgkey, 0,0,0,0)
                keyB = keyB or ""
-               if errB > 0 then succB = 0 end
+               if errB == nil or errB > 0 then succB = 0 end
                result[sector] = { succA, succB, utils.ConvertAsciiToHex(keyA), utils.ConvertAsciiToHex(keyB) }
                                
                -- Check if user aborted
Impressum, Datenschutz