fix nBytes check in multicast code

This commit is contained in:
Arceliar 2021-06-06 04:48:00 -05:00
parent e7da3d72c4
commit f7607557c1

View File

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