google / go-tpm

Apache License 2.0
561 stars 161 forks source link

fix reflection on cmd structs not to use elem #329

Closed chrisfenner closed 1 year ago

chrisfenner commented 1 year ago

In d68ba3356cd92210724c141baab40ccbea95e822, commands were updated to implement Command by value and not by pointer. A little bit of reflection code remained that still called Elem() in certain situations, which panics (since cmd is not a pointer anymore).