Commit 15b03d43 authored by Marek Vavrusa's avatar Marek Vavrusa

Disallow queries without questin section.

parent c2d26260
......@@ -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;
}
......
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