Skip to content

Commit c9e9cc1

Browse files
committed
Gossip discovery: validate dead members bug fix
When receiving a membership request, the validation of dead peers messages was done on the top level message instead Change-Id: I1596358993404af6b01b813e5cbf053c48ba8d31 Signed-off-by: Yacov Manevich <[email protected]>
1 parent 01cc491 commit c9e9cc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gossip/discovery/discovery_impl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ func (d *gossipDiscoveryImpl) handleMsgFromComm(m *proto.SignedGossipMessage) {
337337
d.logger.Warning("Membership response contains an invalid message from an offline peer", err)
338338
return
339339
}
340-
if !d.crypt.ValidateAliveMsg(m) {
340+
if !d.crypt.ValidateAliveMsg(dm) {
341341
d.logger.Warningf("Alive message isn't authentic, someone spoofed %s's identity", dm.GetAliveMsg().Membership)
342342
continue
343343
}

0 commit comments

Comments
 (0)