SystemSan: log correct dns type and class (#9476)

by skipping final null byte of domain name
This commit is contained in:
Catena cyber 2023-01-22 23:48:14 +01:00 committed by GitHub
parent 05c9ac23d5
commit 107f33937f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ struct DnsRequest parse_dns_request(std::vector<std::byte> data, size_t offset)
while(offset < data.size()) {
uint8_t rlen = uint8_t(data[offset]);
if (rlen == 0) {
offset++;
break;
}
r.nb_levels++;