diff options
Diffstat (limited to 'common/u2f.c')
-rw-r--r-- | common/u2f.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/u2f.c b/common/u2f.c index e5b73efc8e..bca71aedf4 100644 --- a/common/u2f.c +++ b/common/u2f.c @@ -333,7 +333,7 @@ unsigned u2f_apdu_rcv(uint8_t *buf, unsigned in_len, unsigned max_len) CPRINTF("%T/%d U2F APDU ", apdu.len); /* Is the APDU well-formed including its payload ? */ - if (in_len < 5 || (apdu.len > in_len - (apdu.data - buf))) { + if (in_len < 4 || (apdu.len > in_len - (apdu.data - buf))) { sw = U2F_SW_WRONG_LENGTH; goto ret_status; } |