Skip to content

Commit

Permalink
fix: missing validateCondition in ReplaceStatement
Browse files Browse the repository at this point in the history
  • Loading branch information
lnever authored and fujita committed May 23, 2018
1 parent 30e519e commit 9d184af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions table/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9d184af

Please sign in to comment.