From fa9e2b4ec41850c45db4787d46e1590387f46240 Mon Sep 17 00:00:00 2001 From: zah Date: Wed, 17 Aug 2022 04:47:21 +0300 Subject: [PATCH] Fix #3965 (potential crashes when routing certain gossip messages) (#3978) --- beacon_chain/validators/message_router.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beacon_chain/validators/message_router.nim b/beacon_chain/validators/message_router.nim index 9f1ca1e48..229d73a2d 100644 --- a/beacon_chain/validators/message_router.nim +++ b/beacon_chain/validators/message_router.nim @@ -429,7 +429,7 @@ proc routeSignedVoluntaryExit*( if not res.isGoodForSending: warn "Voluntary exit failed validation", exit = shortLog(exit), error = res.error() - return err(res.error()[1]) + return err(res.error()[1]) let res = await router[].network.broadcastVoluntaryExit(exit) if res.isOk(): @@ -449,7 +449,7 @@ proc routeAttesterSlashing*( if not res.isGoodForSending: warn "Attester slashing failed validation", slashing = shortLog(slashing), error = res.error() - return err(res.error()[1]) + return err(res.error()[1]) let res = await router[].network.broadcastAttesterSlashing(slashing) if res.isOk(): @@ -470,7 +470,7 @@ proc routeProposerSlashing*( if not res.isGoodForSending: warn "Proposer slashing request failed validation", slashing = shortLog(slashing), error = res.error() - return err(res.error()[1]) + return err(res.error()[1]) let res = await router[].network.broadcastProposerSlashing(slashing) if res.isOk():