summaryrefslogtreecommitdiffhomepage
path: root/table
diff options
context:
space:
mode:
Diffstat (limited to 'table')
-rw-r--r--table/message.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/table/message.go b/table/message.go
index dac7c439..0cfa07e8 100644
--- a/table/message.go
+++ b/table/message.go
@@ -29,6 +29,10 @@ func UpdatePathAttrs2ByteAs(msg *bgp.BGPUpdate) error {
}
}
+ if asAttr == nil {
+ return nil
+ }
+
as4pathParam := make([]*bgp.As4PathParam, 0)
for i, param := range asAttr.Value {
asParam, y := param.(*bgp.As4PathParam)
@@ -74,6 +78,10 @@ func UpdatePathAttrs4ByteAs(msg *bgp.BGPUpdate) error {
}
}
+ if asAttr == nil {
+ return nil
+ }
+
AS := make([]uint32, 0)
if as4Attr != nil {
for _, p := range as4Attr.Value {