diff options
Diffstat (limited to 'packet/bgp.go')
-rw-r--r-- | packet/bgp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/bgp.go b/packet/bgp.go index 5cd748e7..464ec018 100644 --- a/packet/bgp.go +++ b/packet/bgp.go @@ -1290,7 +1290,7 @@ func (n *EVPNNLRI) DecodeFromBytes(data []byte) error { return err } n.RouteTypeData = r - return n.RouteTypeData.DecodeFromBytes(data) + return n.RouteTypeData.DecodeFromBytes(data[:n.Length]) } func (n *EVPNNLRI) Serialize() ([]byte, error) { |