Skip to content
Snippets Groups Projects
Commit aac04d04 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

rrset: allow empty rdata

parent 38608bd4
Branches
Tags
No related merge requests found
...@@ -551,7 +551,7 @@ int knot_rrset_add_rdata(knot_rrset_t *rrset, ...@@ -551,7 +551,7 @@ int knot_rrset_add_rdata(knot_rrset_t *rrset,
const uint8_t *rdata, const uint16_t size, const uint8_t *rdata, const uint16_t size,
const uint32_t ttl, mm_ctx_t *mm) const uint32_t ttl, mm_ctx_t *mm)
{ {
if (rrset == NULL || rdata == NULL) { if (rrset == NULL || (rdata == NULL && size > 0)) {
return KNOT_EINVAL; return KNOT_EINVAL;
} }
......
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