Browse Source

Merge pull request #2129 from subtly/netFix

Catch exception for maformed rlp received by node table.
cl-refactor
Gav Wood 10 years ago
parent
commit
e0eb3db3ed
  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