Review external token reset policy take 2

This commit is contained in:
BTChip github
2019-03-08 17:34:16 +01:00
parent dc52d78d41
commit 416a786e73

View File

@@ -1556,7 +1556,7 @@ tokenDefinition_t* getKnownToken() {
}
#endif
if (currentTokenSet && (os_memcmp(tmpCtx.transactionContext.currentToken.address, tmpContent.txContent.destination, 20) == 0)) {
if ((currentTokenSet || tokenProvisioned) && (os_memcmp(tmpCtx.transactionContext.currentToken.address, tmpContent.txContent.destination, 20) == 0)) {
currentTokenSet = false;
return &tmpCtx.transactionContext.currentToken;
}