diff options
Diffstat (limited to 'internal')
-rw-r--r-- | internal/pkg/table/policy.go | 3 |
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 |