summaryrefslogtreecommitdiffhomepage
path: root/packet
diff options
context:
space:
mode:
Diffstat (limited to 'packet')
-rw-r--r--packet/bgp.go1
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