From baf7d114af26cdc60ea96fefd779096d2acfab5a Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 13 Aug 2020 13:38:49 +1000 Subject: [PATCH] CERT: reject records with a empty certificate field (cherry picked from commit a238f37239fa327a01414400fcccd203d42c0b43) --- lib/dns/rdata/generic/cert_37.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns/rdata/generic/cert_37.c b/lib/dns/rdata/generic/cert_37.c index fedba9034f..b549ef1ae9 100644 --- a/lib/dns/rdata/generic/cert_37.c +++ b/lib/dns/rdata/generic/cert_37.c @@ -125,7 +125,7 @@ fromwire_cert(ARGS_FROMWIRE) { UNUSED(options); isc_buffer_activeregion(source, &sr); - if (sr.length < 5) { + if (sr.length < 6) { return (ISC_R_UNEXPECTEDEND); }