fix if certificate not found

This commit is contained in:
merlokk 2018-10-08 20:46:57 +03:00
commit b8e9900bd5

View file

@ -1234,7 +1234,7 @@ int CmdHFEMVScan(const char *cmd) {
if (decodeTLV)
TLVPrintFromBuffer(buf, len);
// check mode
// save mode
if (tlvdb_get(tlvRoot, 0x9f38, NULL)) {
JsonSaveStr(root, "$.Application.Mode", TransactionTypeStr[TrType]);
}
@ -1354,8 +1354,10 @@ int CmdHFEMVScan(const char *cmd) {
}
// getting certificates
if (tlvdb_get(tlvRoot, 0x90, NULL)) {
PrintAndLog("-->Recovering certificates.");
RecoveryCertificates(tlvRoot, root);
}
// DropField
DropField();