From 13e64036504990958057eeab5381c66cf8e0d38e Mon Sep 17 00:00:00 2001 From: Efim Verzakov Date: Fri, 15 Aug 2025 10:25:54 +0000 Subject: [PATCH] Fix Typo in TPM1.2 nvReadValue function when commandAuth is passed --- tpm/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpm/commands.go b/tpm/commands.go index 971846dc..ca30e3b9 100644 --- a/tpm/commands.go +++ b/tpm/commands.go @@ -221,7 +221,7 @@ func nvReadValue(rw io.ReadWriter, index, offset, len uint32, ca *commandAuth) ( // Auth is needed if ca != nil { in = append(in, ca) - out = append(out, ra) + out = append(out, &ra) ret, err = submitTPMRequest(rw, tagRQUAuth1Command, ordNVReadValue, in, out) } else { // Auth is not needed