Skip to content

Commit

Permalink
fix nBytes check in multicast code
Browse files Browse the repository at this point in the history
  • Loading branch information
Arceliar committed Jun 6, 2021
1 parent e7da3d7 commit f760755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/multicast/multicast.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ func (m *Multicast) listen() {
continue
}
}
if len(bs) < ed25519.PublicKeySize {
if nBytes < ed25519.PublicKeySize {
continue
}
var key ed25519.PublicKey
Expand Down

0 comments on commit f760755

Please sign in to comment.