Commit 0dedeb78 authored by Lubos Slovak's avatar Lubos Slovak

RRSet wire: Fixed wrong assert.

parent 1a543355
......@@ -571,7 +571,7 @@ static int parse_rdata(const uint8_t *pkt_wire, size_t *pos, size_t pkt_size,
*pos += rdlength;
size_t written = dst - rdata_buffer;
assert(written == rdlength + KNOT_DNAME_MAXLEN - dst_avail);
assert(written == rdlength + 2 * KNOT_DNAME_MAXLEN - dst_avail);
return knot_rrset_add_rdata(rrset, rdata_buffer, written, ttl, mm);
}
......
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