From 9d184af6c62a08cdadd7f939d11a578547a7a7ee Mon Sep 17 00:00:00 2001 From: lnever Date: Thu, 17 May 2018 10:50:15 +0800 Subject: fix: missing validateCondition in ReplaceStatement --- table/policy.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'table/policy.go') 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 { -- cgit v1.2.3