hardnested: don't drop field when in test mode

This commit is contained in:
Philippe Teuwen 2020-04-29 20:20:06 +02:00
parent 07f41da74d
commit 31ccc7d7ca

View file

@ -1866,7 +1866,7 @@ static int CmdHF14AMfNestedHard(const char *Cmd) {
uint64_t foundkey = 0;
int16_t isOK = mfnestedhard(blockNo, keyType, key, trgBlockNo, trgKeyType, know_target_key ? trgkey : NULL, nonce_file_read, nonce_file_write, slow, tests, &foundkey, filename);
DropField();
if (tests == 0) DropField();
if (isOK) {
switch (isOK) {
case 1 :