We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d8474c9 + deedc69 commit 76d127fCopy full SHA for 76d127f
src/ln/peer_handler.rs
@@ -409,8 +409,10 @@ impl<Descriptor: SocketDescriptor> PeerManager<Descriptor> {
409
410
18 => {
411
let msg = try_potential_decodeerror!(msgs::Ping::decode(&msg_data[2..]));
412
- let resp = msgs::Pong { byteslen: msg.ponglen };
413
- encode_and_send_msg!(resp, 19);
+ if msg.ponglen < 65532 {
+ let resp = msgs::Pong { byteslen: msg.ponglen };
414
+ encode_and_send_msg!(resp, 19);
415
+ }
416
},
417
19 => {
418
try_potential_decodeerror!(msgs::Pong::decode(&msg_data[2..]));
0 commit comments