Browse Source

Catch exception for maformed rlp received by node table.

cl-refactor
subtly 10 years ago
parent
commit
d4724ee9aa
  1. 2
      libp2p/NodeTable.cpp

2
libp2p/NodeTable.cpp

@ -422,8 +422,8 @@ void NodeTable::onReceived(UDPSocketFace*, bi::udp::endpoint const& _from, bytes
unsigned packetType = signedBytes[0];
bytesConstRef rlpBytes(_packet.cropped(h256::size + Signature::size + 1));
RLP rlp(rlpBytes);
try {
RLP rlp(rlpBytes);
switch (packetType)
{
case Pong::type:

Loading…
Cancel
Save