Merge pull request #6 from vikulin/future

fix nBytes check in multicast code
This commit is contained in:
Vadym Vikulin 2021-06-06 12:51:11 +03:00 committed by GitHub
commit 37b386eb71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -345,7 +345,7 @@ func (m *Multicast) listen() {
continue
}
}
if len(bs) < ed25519.PublicKeySize {
if nBytes < ed25519.PublicKeySize {
continue
}
var key ed25519.PublicKey