mirror of
https://github.com/google/go-attestation.git
synced 2024-12-24 07:06:45 +00:00
fix returning wrong error in ParseWinEvents (#291)
Co-authored-by: Hans-Gert Dahmen <hans-gert.dahmen@immu.ne>
This commit is contained in:
parent
d98599d257
commit
17f9c05652
@ -272,7 +272,7 @@ func ParseWinEvents(events []Event) (*WinEvents, error) {
|
||||
return nil, fmt.Errorf("invalid tagged event structure at event %d: %w", e.sequence, err)
|
||||
}
|
||||
if digestVerify != nil {
|
||||
return nil, fmt.Errorf("invalid digest for tagged event %d: %w", e.sequence, err)
|
||||
return nil, fmt.Errorf("invalid digest for tagged event %d: %w", e.sequence, digestVerify)
|
||||
}
|
||||
if err := out.readWinEventBlock(s, e.Index); err != nil {
|
||||
return nil, fmt.Errorf("invalid SIPA events in event %d: %w", e.sequence, err)
|
||||
@ -303,7 +303,7 @@ func ParseWinEvents(events []Event) (*WinEvents, error) {
|
||||
return nil, fmt.Errorf("invalid tagged event structure at event %d: %w", e.sequence, err)
|
||||
}
|
||||
if digestVerify != nil {
|
||||
return nil, fmt.Errorf("invalid digest for tagged event %d: %w", e.sequence, err)
|
||||
return nil, fmt.Errorf("invalid digest for tagged event %d: %w", e.sequence, digestVerify)
|
||||
}
|
||||
if err := out.readWinEventBlock(s, e.Index); err != nil {
|
||||
return nil, fmt.Errorf("invalid SIPA events in event %d: %w", e.sequence, err)
|
||||
|
Loading…
Reference in New Issue
Block a user