Index: device/u2f/u2f_device.cc |
diff --git a/device/u2f/u2f_device.cc b/device/u2f/u2f_device.cc |
index dc9e5ec127be1845cb71dc3f1d731cf4cab7caf3..c531f1733ecb405a1e6056371397f8a4338c7f37 100644 |
--- a/device/u2f/u2f_device.cc |
+++ b/device/u2f/u2f_device.cc |
@@ -95,10 +95,9 @@ void U2fDevice::OnSignComplete(const MessageCallback& callback, |
callback.Run(ReturnCode::SUCCESS, sign_response->data()); |
break; |
case U2fApduResponse::Status::SW_WRONG_DATA: |
- callback.Run(ReturnCode::INVALID_PARAMS, std::vector<uint8_t>()); |
- break; |
+ case U2fApduResponse::Status::SW_WRONG_LENGTH: |
default: |
- callback.Run(ReturnCode::FAILURE, std::vector<uint8_t>()); |
+ callback.Run(ReturnCode::INVALID_PARAMS, std::vector<uint8_t>()); |
break; |
} |
} |