summaryrefslogtreecommitdiffhomepage
path: root/table/policy.go
diff options
context:
space:
mode:
Diffstat (limited to 'table/policy.go')
-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 {