Skip to content

Commit

Permalink
Fix crash in fenceMatchRoam causing an index out of range panic
Browse files Browse the repository at this point in the history
  • Loading branch information
larsw committed Jun 18, 2020
1 parent c1ba2d8 commit 4fdbade
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 4fdbade

Please sign in to comment.