summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'internal/pkg')
-rw-r--r--internal/pkg/table/message.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/pkg/table/message.go b/internal/pkg/table/message.go
index 32069484..014e8978 100644
--- a/internal/pkg/table/message.go
+++ b/internal/pkg/table/message.go
@@ -130,8 +130,9 @@ func UpdatePathAttrs4ByteAs(msg *bgp.BGPUpdate) error {
}
as4Len := 0
- as4Params := make([]bgp.AsPathParamInterface, 0, len(as4Attr.Value))
+ var as4Params []bgp.AsPathParamInterface
if as4Attr != nil {
+ as4Params = make([]bgp.AsPathParamInterface, 0, len(as4Attr.Value))
for _, p := range as4Attr.Value {
// RFC 6793 6. Error Handling
//