diff --git a/attest/pcp_windows.go b/attest/pcp_windows.go index f82245c..73d3d93 100644 --- a/attest/pcp_windows.go +++ b/attest/pcp_windows.go @@ -395,7 +395,7 @@ func (h *winPCP) EKCerts() ([]*x509.Certificate, error) { // Reading the certificate from the system store has failed. // Lets try reading the raw bytes directly from NVRAM intead. if len(c) == 0 { - buf, err = getNCryptBufferProperty(h.hProv, "PCP_EKNVCERT") + buf, err := getNCryptBufferProperty(h.hProv, "PCP_EKNVCERT") if err != nil { return nil, fmt.Errorf("Failed to read PCP_EKNVCERT: %v", err) }