fix parsing when lengincluded is not set

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer
2025-05-14 13:26:25 +02:00
parent ad57c66a32
commit 958ff66070

View File

@ -24,6 +24,8 @@ func (p *Payload) Decode(raw []byte) error {
}
p.Length = binary.BigEndian.Uint32(raw)
p.Data = raw[5:]
} else {
p.Data = raw[1:]
}
return nil
}