diff options
-rw-r--r-- | packet/bgp.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packet/bgp.go b/packet/bgp.go index 5f31720d..17fcabef 100644 --- a/packet/bgp.go +++ b/packet/bgp.go @@ -1384,6 +1384,7 @@ func (p *PathAttributeAsPath) DecodeFromBytes(data []byte) error { } as4Bytes, err := p.DefaultAsPath.isValidAspath(p.PathAttribute.Value) if err != nil { + err.(*MessageError).Data = data[:p.Len()] return err } v := p.PathAttribute.Value |