Skip to content

Commit

Permalink
Trim v for applet version check.
Browse files Browse the repository at this point in the history
  • Loading branch information
jiggoha committed Mar 27, 2024
1 parent f8ad07e commit adf8aa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trusted_applet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ func main() {

// Verify if we are allowed to run on this unit by sending version
// information for rollback protection check.
if err := syscall.Call("RPC.Version", Version, nil); err != nil {
log.Fatalf("TA version check error, %v", err)
if err := syscall.Call("RPC.Version", strings.TrimPrefix(Version, "v"), nil); err != nil {
log.Fatalf("TA version check error for version %q: %v", Version, err)
}
// Set default configuration, the applet is reponsible of implementing
// its own configuration storage strategy.
Expand Down

0 comments on commit adf8aa6

Please sign in to comment.