Skip to content

Commit

Permalink
Require at least one fuzzing connection to succeed
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Saveau <[email protected]>
  • Loading branch information
SUPERCILEX committed Jul 31, 2024
1 parent 33435e2 commit a4c4ca2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1851,6 +1851,8 @@ fn fuzz(
0 => {
if let Ok(client) = if clients.len() == 32 {
connect_to_server_with(addr, SocketFlags::NONBLOCK)
} else if clients.is_empty() {
Ok(connect_to_server(addr)?)
} else {
connect_to_server(addr)
} {
Expand Down

0 comments on commit a4c4ca2

Please sign in to comment.