diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-01-24 00:51:57 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-01-25 23:02:21 +0900 |
commit | 7ed648411a611ba1e90691c44d270acfc81302e8 (patch) | |
tree | c9b44531ac5e4e16758a512c4ccaf23ee5d36f02 | |
parent | 4e54f8521f3afdd49683f9d7bb2a0aa51e3db4c7 (diff) |
packet: malformed aspath returns Notificaiton with data
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-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 |