fix parsing when lengincluded is not set
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user