From 917a23c094086d5ac07a0f44f9672f305ef1ee47 Mon Sep 17 00:00:00 2001 From: Satoshi Fujimoto Date: Tue, 24 Oct 2017 09:38:34 +0900 Subject: table/policy: Nil check before reference in inUse() Signed-off-by: Satoshi Fujimoto --- table/policy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'table/policy.go') diff --git a/table/policy.go b/table/policy.go index c870c42e..0d112bba 100644 --- a/table/policy.go +++ b/table/policy.go @@ -3044,7 +3044,7 @@ func (r *RoutingPolicy) inUse(d DefinedSet) bool { for _, p := range r.policyMap { for _, s := range p.Statements { for _, c := range s.Conditions { - if c.Set().Name() == name { + if c.Set() != nil && c.Set().Name() == name { return true } } -- cgit v1.2.3