diff --git a/blocking_client/src/quiche_client_loop.rs b/blocking_client/src/quiche_client_loop.rs index dc77370..1a25ad7 100644 --- a/blocking_client/src/quiche_client_loop.rs +++ b/blocking_client/src/quiche_client_loop.rs @@ -2,7 +2,6 @@ use std::{ net::SocketAddr, sync::{atomic::AtomicBool, Arc}, time::{Duration, Instant}, - u64, }; use log::{debug, error, info, trace}; diff --git a/server/src/quiche_server_loop.rs b/server/src/quiche_server_loop.rs index d4f9858..fd4eb33 100644 --- a/server/src/quiche_server_loop.rs +++ b/server/src/quiche_server_loop.rs @@ -404,13 +404,10 @@ pub fn server_loop( } }; log::trace!("got packet {:?}", hdr); - let conn_id = if !cfg!(feature = "fuzzing") { + let conn_id = { let conn_id = ring::hmac::sign(&conn_id_seed, &hdr.dcid); let conn_id = &conn_id.as_ref()[..quiche::MAX_CONN_ID_LEN]; conn_id.to_vec().into() - } else { - // When fuzzing use an all zero connection ID. - [0; quiche::MAX_CONN_ID_LEN].to_vec().into() }; // Lookup a connection based on the packet's connection ID. If there