From 31ccc7d7ca14f9df885bda5d0d150ef5e6e8a0af Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Wed, 29 Apr 2020 20:20:06 +0200 Subject: [PATCH] hardnested: don't drop field when in test mode --- client/src/cmdhfmf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdhfmf.c b/client/src/cmdhfmf.c index 8c6247614..95e821781 100644 --- a/client/src/cmdhfmf.c +++ b/client/src/cmdhfmf.c @@ -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 :