sk-usbhid: preserve error code returned by key_lookup()
authordjm <djm@openbsd.org>
Wed, 20 Jul 2022 03:31:42 +0000 (03:31 +0000)
committerdjm <djm@openbsd.org>
Wed, 20 Jul 2022 03:31:42 +0000 (03:31 +0000)
commit93c6accc72ad7ad2853d4e348b454068b454eb37
tree7b94fcd445bc7ddf21d0ea8c3f9acb906f0efddf
parent7b4e249a241cfa06e8c9566b2e83b68ea192513c
sk-usbhid: preserve error code returned by key_lookup()
it conveys useful information, such as the supplied pin being wrong.

Part of GHPR329 from Pedro Martelletto
usr.bin/ssh/sk-usbhid.c