mirror of
https://github.com/OISF/suricata.git
synced 2026-10-12 02:07:10 +00:00
dns/probe: check that a request has at least one query
Ticket: 7279
This commit is contained in:
committed by
Victor Julien
parent
9b40446bea
commit
5da2b5d7a4
@@ -789,6 +789,9 @@ fn probe_header_validity(header: &DNSHeader, rlen: usize) -> (bool, bool, bool)
|
||||
}
|
||||
|
||||
let is_request = header.flags & 0x8000 == 0;
|
||||
if is_request && header.questions == 0 {
|
||||
return (false, false, false);
|
||||
}
|
||||
return (true, is_request, false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user