Skip to content

Commit

Permalink
Merge pull request #566 from larsw/larsw/fencing-crash-fix
Browse files Browse the repository at this point in the history
Fix crash in fenceMatchRoam causing an index out of range panic
  • Loading branch information
tidwall authored Jun 24, 2020
2 parents c1ba2d8 + 4fdbade commit 6629eba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/fence.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ func fenceMatchRoam(
var match bool
var j int
for ; j < len(newNearbys); j++ {
if newNearbys[i].id == oldNearbys[i].id {
if newNearbys[j].id == oldNearbys[i].id {
match = true
break
}
Expand Down

0 comments on commit 6629eba

Please sign in to comment.