Signed-off-by: Mario Kleinsasser <mario.kleinsasser@gmail.com>
This commit is contained in:
parent
93ade7c432
commit
1c6efbd962
1 changed files with 6 additions and 0 deletions
|
@ -217,6 +217,9 @@ func (r *Request) Scrub(reply *dns.Msg) (*dns.Msg, Result) {
|
|||
re = m - 1
|
||||
continue
|
||||
}
|
||||
if rl == size {
|
||||
break
|
||||
}
|
||||
}
|
||||
// We may come out of this loop with one rotation too many as we don't break on rl == size.
|
||||
// I.e. m makes it too large, but m-1 works.
|
||||
|
@ -245,6 +248,9 @@ func (r *Request) Scrub(reply *dns.Msg) (*dns.Msg, Result) {
|
|||
ra = m - 1
|
||||
continue
|
||||
}
|
||||
if rl == size {
|
||||
break
|
||||
}
|
||||
}
|
||||
// We may come out of this loop with one rotation too many as we don't break on rl == size.
|
||||
// I.e. m makes it too large, but m-1 works.
|
||||
|
|
Loading…
Add table
Reference in a new issue