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

Fix in packet_parse_rest()

- It does not try to parse anything if the whole packet is already
  parsed.
parent d2f1fba2
No related branches found
No related tags found
No related merge requests found
......@@ -825,6 +825,10 @@ int knot_packet_parse_rest(knot_packet_t *packet)
// return KNOT_EOK;
// }
if (packet->parsed == packet->size) {
return KNOT_EOK;
}
size_t pos = packet->parsed;
return knot_packet_parse_rr_sections(packet, &pos);
......
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