]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
CERT: reject records with a empty certificate field
authorMark Andrews <marka@isc.org>
Thu, 13 Aug 2020 03:38:49 +0000 (13:38 +1000)
committerMark Andrews <marka@isc.org>
Thu, 13 Aug 2020 13:06:55 +0000 (23:06 +1000)
lib/dns/rdata/generic/cert_37.c

index fedba9034f776133c9b56e7bb1afcf5b2e9ea34f..b549ef1ae945bf890a88ecae3c515215bd7795ce 100644 (file)
@@ -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);
        }