Skip to content

Commit 8ce5b18

Browse files
committed
Fix clang-tidy TODO style for signed peer record validation
1 parent 90f5d6b commit 8ce5b18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/protocol/identify/identify_msg_processor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,8 @@ namespace libp2p::protocol {
450450
}
451451
[[maybe_unused]] auto remote_peer_id = stream_peer_id_res.value();
452452

453-
// TODO: Implement full peer record envelope parsing and validation
454-
// according to libp2p peer record specification.
453+
// TODO(identify-signed-peer-record): Implement full peer record envelope
454+
// parsing and validation according to libp2p peer record specification.
455455
// For now, we reject all signedPeerRecords to prevent the vulnerability
456456
// where malicious peers could inject third-party signed records.
457457
// This is a security fix to prevent address poisoning attacks.

0 commit comments

Comments
 (0)