summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/table
diff options
context:
space:
mode:
Diffstat (limited to 'internal/pkg/table')
-rw-r--r--internal/pkg/table/policy.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/pkg/table/policy.go b/internal/pkg/table/policy.go
index 409989a0..958342a1 100644
--- a/internal/pkg/table/policy.go
+++ b/internal/pkg/table/policy.go
@@ -1453,6 +1453,9 @@ func (c *PrefixCondition) Evaluate(path *Path, _ *PolicyOptions) bool {
}
r := nlriToIPNet(path.GetNlri())
+ if r == nil {
+ return false
+ }
ones, _ := r.Mask.Size()
masklen := uint8(ones)
result := false