Skip to content

Commit be7cb29

Browse files
committed
return early if peers failed handshake
1 parent 1a64b05 commit be7cb29

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/fuzz/cmpctblock.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ FUZZ_TARGET(cmpctblock, .init=initialize_cmpctblock)
149149
CNode& p2p_node = *peers.back();
150150
FillNode(fuzzed_data_provider, connman, p2p_node);
151151
connman.AddTestNode(p2p_node);
152+
if (p2p_node.fDisconnect) {
153+
// If any peers failed the version-verack handshake, return early.
154+
return;
155+
}
152156
}
153157

154158
// Stores blocks generated this iteration.

0 commit comments

Comments
 (0)