Commit ddeb82bf authored by Lubos Slovak's avatar Lubos Slovak

RRSet wire: Fixed dname_to_wire() (max len)

parent e009a3ae
......@@ -171,6 +171,10 @@ int knot_dname_to_wire(uint8_t *dst, const knot_dname_t *src, size_t maxlen)
}
int len = knot_dname_size(src);
if (len > maxlen) {
return KNOT_ESPACE;
}
memcpy(dst, src, len);
return len;
}
......
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