Skip to content

Commit

Permalink
bugfix hid cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
conorpp committed Dec 1, 2019
1 parent 53427c4 commit 46f2920
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fido2/ctaphid.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,9 @@ uint8_t ctaphid_handle_packet(uint8_t * pkt_raw)
status = ctap_request(ctap_buffer, len, &ctap_resp);

wb.bcnt = (ctap_resp.length+1);
wb.cid = cid;
wb.cmd = cmd;



timestamp();
Expand Down Expand Up @@ -665,6 +668,9 @@ uint8_t ctaphid_handle_packet(uint8_t * pkt_raw)
u2f_request((struct u2f_request_apdu*)ctap_buffer, &ctap_resp);

wb.bcnt = (ctap_resp.length);
wb.cid = cid;
wb.cmd = cmd;


ctaphid_write(&wb, ctap_resp.data, ctap_resp.length);
ctaphid_write(&wb, NULL, 0);
Expand Down

0 comments on commit 46f2920

Please sign in to comment.