From 1b862d3b0cb13ad23e602603daeff01f61ae899b Mon Sep 17 00:00:00 2001 From: Conor Patrick Date: Tue, 29 Oct 2019 09:09:53 -0400 Subject: [PATCH] fix error return --- fido2/ctaphid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fido2/ctaphid.c b/fido2/ctaphid.c index 7bbcb7e..6f31d62 100644 --- a/fido2/ctaphid.c +++ b/fido2/ctaphid.c @@ -796,8 +796,8 @@ uint8_t ctaphid_custom_command(int len, CTAP_RESPONSE * ctap_resp, CTAPHID_WRITE param |= ctap_buffer[1] << 8; param |= ctap_buffer[2] << 0; if (param != 0){ - ctaphid_send_error(wb->cid, CTAP1_ERR_INVALID_LENGTH); - return CTAP2_ERR_UNSUPPORTED_OPTION; + ctaphid_send_error(wb->cid, CTAP2_ERR_UNSUPPORTED_OPTION); + return 1; } // Ask for THREE button presses