]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
libknot/pktparser: allow empty rdata at NULL rrtype...
authorLibor Peltan <libor.peltan@nic.cz>
Tue, 22 Aug 2023 13:55:58 +0000 (15:55 +0200)
committerLibor Peltan <libor.peltan@nic.cz>
Tue, 22 Aug 2023 13:55:58 +0000 (15:55 +0200)
...in accordance to suggested format in RFC 8145

src/libknot/packet/rrset-wire.c

index 2b02969de7a1dfbfb6853fdc03e0a89a0f4f90f1..096bd4770515ddeb71e2fb5a04c9b4fcd24cdf2f 100644 (file)
@@ -636,6 +636,7 @@ static bool allow_zero_rdata(const knot_rrset_t *rr,
 {
        return rr->rclass != KNOT_CLASS_IN ||  // NONE and ANY for DDNS
               rr->type == KNOT_RRTYPE_APL ||  // APL RR type
+              rr->type == KNOT_RRTYPE_NULL || // NULL RR type
               desc->type_name == NULL;        // Unknown RR type
 }