summaryrefslogtreecommitdiffhomepage
path: root/table/policy.go
diff options
context:
space:
mode:
authorSatoshi Fujimoto <satoshi.fujimoto7@gmail.com>2017-10-24 09:38:34 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-11-03 13:29:53 +0900
commit917a23c094086d5ac07a0f44f9672f305ef1ee47 (patch)
treebc3d5bc0800d859e5467c5b555302f72104447cf /table/policy.go
parent6378594f24200495c53436159d375b5d1d86a671 (diff)
table/policy: Nil check before reference in inUse()
Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com>
Diffstat (limited to 'table/policy.go')
-rw-r--r--table/policy.go2
1 files changed, 1 insertions, 1 deletions
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
}
}