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