summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--internal/pkg/table/policy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/pkg/table/policy.go b/internal/pkg/table/policy.go
index 73bfac75..6c4ca0b0 100644
--- a/internal/pkg/table/policy.go
+++ b/internal/pkg/table/policy.go
@@ -2542,7 +2542,7 @@ func (a *AsPathPrependAction) Apply(path *Path, option *PolicyOptions) *Path {
asn = a.asn
}
- confed := option != nil && option.Info.Confederation
+ confed := option != nil && option.Info != nil && option.Info.Confederation
path.PrependAsn(asn, a.repeat, confed)
return path