Skip to content
Snippets Groups Projects
Commit b08a90ef authored by Karel Slaný's avatar Karel Slaný
Browse files

Fixed error.

Area can be skipped only after the offset has been acquired.
parent 704b5e7f
No related branches found
No related tags found
1 merge request!555Unique EDNS options reservation
......@@ -346,10 +346,10 @@ int knot_edns_reserve_unique_option(knot_rrset_t *opt_rr, uint16_t code,
assert(wr_wire.error == KNOT_EOK);
} else {
/* There isn't enough space for a copy. */
wire_ctx_skip(&wr_wire, full_len);
assert(wr_wire.error == KNOT_EOK);
memmove(knot_rdata_data(rdata) + wire_ctx_offset(&wr_wire),
rd_pos, full_len);
wire_ctx_skip(&wr_wire, full_len);
assert(wr_wire.error == KNOT_EOK);
}
} else {
deleted_len += full_len;
......
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