diff --git a/src/libknot/packet/pkt.c b/src/libknot/packet/pkt.c index fef4574f0ca2ebca0f44b5d2ea039fb6c238111c..88fdea5b3ad9197db41bfe24f4a6a608289561d7 100644 --- a/src/libknot/packet/pkt.c +++ b/src/libknot/packet/pkt.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)); rrinfo->pos = pkt->size; rrinfo->flags = flags; +#ifdef NDEBUG + assert(!rrsigs || knot_dname_is_equal(rr->owner, rrsigs->owner)); +#endif rrinfo->compress_ptr[0] = compr_hint; rrinfo->rrsigs = rr->type != KNOT_RRTYPE_RRSIG ? rrsigs : NULL; pkt->rr[pkt->rrset_count] = rr;