Skip to content
Snippets Groups Projects
Commit a319761c authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman
Browse files

namserver/compression: avoid pointing directly at pointer

parent de895d1c
Branches
Tags
1 merge request!1388namserver/compression: avoid pointing directly at pointer
Pipeline #93042 passed with stages
in 5 minutes and 28 seconds
......@@ -107,6 +107,10 @@ static void compr_set_ptr(knot_compr_t *compr, uint16_t hint,
uint16_t offset = written_at - compr->wire;
if (knot_wire_is_pointer(written_at)) {
offset = knot_wire_get_pointer(written_at);
}
knot_compr_hint_set(compr->rrinfo, hint, offset, written_size);
}
......
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