diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-12-24 16:27:11 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-12-24 15:43:40 -0800 |
commit | 3184c7691c93a59e7a6abba916b97d364c36c7ae (patch) | |
tree | 998099497819adb20fd83a14ce5bd8ef44143b71 | |
parent | 586ec66e970cd4d330b35d65a599ae0e116a324a (diff) |
policy: fix insufficient nil check
RouteAction is interface. we have to check the contained value is also
nil.
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
-rw-r--r-- | table/policy.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/table/policy.go b/table/policy.go index 6e5a94b2..6e688ba6 100644 --- a/table/policy.go +++ b/table/policy.go @@ -2151,7 +2151,7 @@ func (s *Statement) Apply(path *Path) (RouteType, *Path) { } } //Routing action - if s.RouteAction == nil { + if s.RouteAction == nil || reflect.ValueOf(s.RouteAction).IsNil() { log.WithFields(log.Fields{ "Topic": "Policy", "Path": path, |