fuzzer client/server: process packets

This commit is contained in:
Joseph Birr-Pixton 2023-01-27 10:05:55 +00:00 committed by ctz
parent 6e0aea5768
commit 4ad8b1f432
2 changed files with 2 additions and 0 deletions

View File

@ -23,4 +23,5 @@ fuzz_target!(|data: &[u8]| {
let example_com = "example.com".try_into().unwrap();
let mut client = ClientConnection::new(config, example_com).unwrap();
let _ = client.read_tls(&mut io::Cursor::new(data));
let _ = client.process_new_packets();
});

View File

@ -29,4 +29,5 @@ fuzz_target!(|data: &[u8]| {
);
let mut server = ServerConnection::new(config).unwrap();
let _ = server.read_tls(&mut io::Cursor::new(data));
let _ = server.process_new_packets();
});