Skip to content

Commit

Permalink
skip consistency check when getting next entry
Browse files Browse the repository at this point in the history
  • Loading branch information
z4yx committed Jul 15, 2024
1 parent 3652699 commit 1f3a11b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions applets/ctap/ctap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1640,8 +1640,12 @@ static uint8_t ctap_credential_management(CborEncoder *encoder, const uint8_t *p
CTAP_credential_management cm;
int ret = parse_credential_management(&parser, &cm, params, len);
CHECK_PARSER_RET(ret);
ret = ctap_consistency_check();
CHECK_PARSER_RET(ret);

if (cm.sub_command != CM_CMD_ENUMERATE_RPS_GET_NEXT_RP &&
cm.sub_command != CM_CMD_ENUMERATE_CREDENTIALS_GET_NEXT_CREDENTIAL) {
ret = ctap_consistency_check();
CHECK_PARSER_RET(ret);
}

static int idx, n_rp; // for rp enumeration
static uint64_t slots; // for credential enumeration
Expand Down

0 comments on commit 1f3a11b

Please sign in to comment.