Skip to content
Snippets Groups Projects
Commit bde36042 authored by Lubos Slovak's avatar Lubos Slovak
Browse files

Fixed parsing rest of the packet.

- Changed check to decide whether to parse rest or not.
  Hopefully this does not break other cases.
parent d015f349
No related branches found
No related tags found
No related merge requests found
......@@ -818,9 +818,15 @@ int knot_packet_parse_rest(knot_packet_t *packet)
return KNOT_EBADARG;
}
if (packet->parsed == packet->size) {
// check if there should be any more records
if (packet->header.ancount == 0
&& packet->header.nscount == 0
&& packet->header.arcount == 0) {
return KNOT_EOK;
}
// if (packet->parsed == packet->size) {
// return KNOT_EOK;
// }
size_t pos = packet->parsed;
......
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