Skip to content
Snippets Groups Projects
Commit 4aba0644 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

Added debug code.

parent 2e0cfd74
Branches
Tags
No related merge requests found
...@@ -506,6 +506,9 @@ int knot_pkt_put(knot_pkt_t *pkt, uint16_t compr_hint, const knot_rrset_t *rr, c ...@@ -506,6 +506,9 @@ int knot_pkt_put(knot_pkt_t *pkt, uint16_t compr_hint, const knot_rrset_t *rr, c
memset(rrinfo, 0, sizeof(knot_rrinfo_t)); memset(rrinfo, 0, sizeof(knot_rrinfo_t));
rrinfo->pos = pkt->size; rrinfo->pos = pkt->size;
rrinfo->flags = flags; rrinfo->flags = flags;
#ifdef NDEBUG
assert(!rrsigs || knot_dname_is_equal(rr->owner, rrsigs->owner));
#endif
rrinfo->compress_ptr[0] = compr_hint; rrinfo->compress_ptr[0] = compr_hint;
rrinfo->rrsigs = rr->type != KNOT_RRTYPE_RRSIG ? rrsigs : NULL; rrinfo->rrsigs = rr->type != KNOT_RRTYPE_RRSIG ? rrsigs : NULL;
pkt->rr[pkt->rrset_count] = rr; pkt->rr[pkt->rrset_count] = rr;
......
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