Skip to content
Snippets Groups Projects
Commit 15b03d43 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Disallow queries without questin section.

parent c2d26260
No related branches found
No related tags found
No related merge requests found
......@@ -483,8 +483,8 @@ int knot_packet_parse_from_wire(knot_packet_t *packet,
if (qdcount == 1) {
if ((err = knot_packet_parse_question(packet)) != KNOT_EOK)
return err;
} else if (qdcount > 1) {
dbg_packet("QDCOUNT larger than 1, FORMERR.\n");
} else {
dbg_packet("QDCOUNT != 1, FORMERR.\n");
return KNOT_EMALF;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment