Verified Commit b77afc85 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

It seems it is possible to have no name in question section

No idea what that means, but we don't want to crash on that.

Fixes #18.
parent d46715d0
Pipeline #12416 passed with stage
in 1 minute and 17 seconds
......@@ -194,7 +194,7 @@ void Dissector::maybeDns(const Packet &packet) {
LOG(DBG, "Alright, a DNS packet, but not an interesting one");
return;
}
if (!message.size() || message[0].section() != Section::Question) {
if (!message.size() || message[0].section() != Section::Question || !message[0].name()) {
LOG(DBG, "Missing the question section");
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment