From adf8aa6520056f1e90f0674408ec8910e102a76c Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 27 Mar 2024 11:54:47 +0000 Subject: [PATCH] Trim v for applet version check. --- trusted_applet/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trusted_applet/main.go b/trusted_applet/main.go index af0db5f..0ff96a2 100644 --- a/trusted_applet/main.go +++ b/trusted_applet/main.go @@ -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.