fix: use original data not the version with the message type stripped, so we don't need to shift the offset math in UnmarshalSignedRegistryEntry

This commit is contained in:
Derrick Hammer 2024-03-03 12:25:27 -05:00
parent 56d5ab5e6b
commit cab059e82a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ func (s *RegistryEntryRequest) EncodeMsgpack(enc *msgpack.Encoder) error {
}
func (s *RegistryEntryRequest) DecodeMessage(dec *msgpack.Decoder, message IncomingMessageData) error {
sre, err := UnmarshalSignedRegistryEntry(message.Data)
sre, err := UnmarshalSignedRegistryEntry(message.Original)
if err != nil {
return err
}