trussed icon indicating copy to clipboard operation
trussed copied to clipboard

RequestUserConsent does not properly restore the ui status when interrupted or timed out.

Open sosthene-nitrokey opened this issue 1 year ago • 0 comments

In the RequestUserConsent syscall, the ui status is saved, then set to WaitingForUserPresence and finally restored at the end of the call.

However, there are early returns in the loop that cause the restoration to not happen. This is not a very large issue as the call to process restores the status to Idle. I think the restoration of the status should be removed as it isn't very useful since it is overridden to Idle just after.

sosthene-nitrokey avatar Jul 19 '23 13:07 sosthene-nitrokey