WRONG_DATA apdu error code fix

This commit is contained in:
Conor Patrick
2019-02-26 20:34:07 -05:00
parent 54241ecd42
commit 46ada5a8b9
3 changed files with 4 additions and 4 deletions

View File

@ -118,7 +118,7 @@ int16_t extend_u2f(struct u2f_request_apdu* req, uint32_t len)
{
if ( ! is_extension_request((uint8_t *) &auth->kh, auth->khl)) // Pin requests
{
rcode = U2F_SW_WRONG_PAYLOAD;
rcode = U2F_SW_WRONG_DATA;
printf1(TAG_EXT, "Ignoring U2F auth request\n");
dump_hex1(TAG_EXT, (uint8_t *) &auth->kh, auth->khl);
goto end;