summaryrefslogtreecommitdiffhomepage
path: root/table
diff options
context:
space:
mode:
authorlnever <nuo.li@nexusguard.com>2018-05-17 10:50:15 +0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-05-23 09:12:07 +0900
commit9d184af6c62a08cdadd7f939d11a578547a7a7ee (patch)
tree66ec4b51e5f1db18cec1b4d86136e549b6a94c00 /table
parent30e519ea8ec7dd19e46054971a06e5ce034f948b (diff)
fix: missing validateCondition in ReplaceStatement
Diffstat (limited to 'table')
-rw-r--r--table/policy.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/table/policy.go b/table/policy.go
index e42c3462..2a99f93d 100644
--- a/table/policy.go
+++ b/table/policy.go
@@ -3354,6 +3354,11 @@ func (r *RoutingPolicy) ReplaceStatement(st *Statement) (err error) {
r.mu.Lock()
defer r.mu.Unlock()
+ for _, c := range st.Conditions {
+ if err = r.validateCondition(c); err != nil {
+ return
+ }
+ }
m := r.statementMap
name := st.Name
if d, ok := m[name]; ok {