From dcda21c096441c0243afe2c28c2676cb958b7211 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 87f5cf8..9cee062 100644 --- a/fido2/ctaphid.c +++ b/fido2/ctaphid.c @@ -777,8 +777,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