Skip to content

Commit

Permalink
Check return values when parsing CTAP commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Radoslav Gerganov authored and conorpp committed Mar 21, 2020
1 parent 7112633 commit 05bc8be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fido2/ctap_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ uint8_t ctap_parse_make_credential(CTAP_makeCredential * MC, CborEncoder * encod
{
return ret;
}
cbor_value_advance(&map);
ret = cbor_value_advance(&map);
check_ret(ret);
}

Expand Down Expand Up @@ -1268,7 +1268,7 @@ uint8_t ctap_parse_get_assertion(CTAP_getAssertion * GA, uint8_t * request, int
return ret;
}

cbor_value_advance(&map);
ret = cbor_value_advance(&map);
check_ret(ret);
}

Expand Down

0 comments on commit 05bc8be

Please sign in to comment.