diff --git a/mdns/src/conn/mod.rs b/mdns/src/conn/mod.rs index 3d70b021f..68cf7bbbd 100644 --- a/mdns/src/conn/mod.rs +++ b/mdns/src/conn/mod.rs @@ -351,6 +351,9 @@ async fn run( } } + // There might be more than MAX_MESSAGE_RECORDS questions, so skip the rest + let _ = p.skip_all_questions(); + for _ in 0..=MAX_MESSAGE_RECORDS { let a = match p.answer_header() { Ok(a) => a,