summaryrefslogtreecommitdiffhomepage
path: root/table
diff options
context:
space:
mode:
Diffstat (limited to 'table')
-rw-r--r--table/message.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/table/message.go b/table/message.go
index ad44a88f..ecd1610c 100644
--- a/table/message.go
+++ b/table/message.go
@@ -23,6 +23,9 @@ import (
)
func UpdatePathAttrs2ByteAs(msg *bgp.BGPUpdate) error {
+ ps := msg.PathAttributes
+ msg.PathAttributes = make([]bgp.PathAttributeInterface, len(ps))
+ copy(msg.PathAttributes, ps)
var asAttr *bgp.PathAttributeAsPath
idx := 0
for i, attr := range msg.PathAttributes {