trussed
trussed copied to clipboard
RequestUserConsent does not properly restore the ui status when interrupted or timed out.
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.