mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-20 04:00:17 +00:00
fix(shim): avoid masking the underlying error when shim verify fails
This commit is contained in:
@@ -58,7 +58,7 @@ impl SecurityHook {
|
||||
match ShimSupport::verify(input) {
|
||||
Ok(output) => match output {
|
||||
// If the verification failed, return the access-denied status.
|
||||
ShimVerificationOutput::VerificationFailed => Status::ACCESS_DENIED,
|
||||
ShimVerificationOutput::VerificationFailed(status) => status,
|
||||
// If the verification succeeded, return the success status.
|
||||
ShimVerificationOutput::VerifiedDataNotLoaded => Status::SUCCESS,
|
||||
ShimVerificationOutput::VerifiedDataBuffer(_) => Status::SUCCESS,
|
||||
|
||||
Reference in New Issue
Block a user