From f7607557c18fb4002cf5abb38c3b5f0127b29202 Mon Sep 17 00:00:00 2001 From: Arceliar Date: Sun, 6 Jun 2021 04:48:00 -0500 Subject: [PATCH] fix nBytes check in multicast code --- src/multicast/multicast.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/multicast/multicast.go b/src/multicast/multicast.go index 59f64dc..220be7f 100644 --- a/src/multicast/multicast.go +++ b/src/multicast/multicast.go @@ -345,7 +345,7 @@ func (m *Multicast) listen() { continue } } - if len(bs) < ed25519.PublicKeySize { + if nBytes < ed25519.PublicKeySize { continue } var key ed25519.PublicKey