Skip to content

Commit

Permalink
Dereference argument to fix bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Winter committed Aug 30, 2023
1 parent 374812b commit 8990920
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions attester.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ func (*nitroAttester) createAttstn(aux auxInfo) ([]byte, error) {

// Prepare our auxiliary information.
switch v := aux.(type) {
case workerAuxInfo:
case *workerAuxInfo:
nonce = v.WorkersNonce[:]
userData = v.LeadersNonce[:]
publicKey = v.PublicKey
case leaderAuxInfo:
case *leaderAuxInfo:
nonce = v.WorkersNonce[:]
userData = v.EnclaveKeys
case clientAuxInfo:
case *clientAuxInfo:
nonce = v.clientNonce[:]
userData = v.attestationHashes
}
Expand Down

0 comments on commit 8990920

Please sign in to comment.