]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix isc_base64_tobuffer call for brid and hhit
authorMark Andrews <marka@isc.org>
Sat, 24 Jan 2026 07:32:40 +0000 (18:32 +1100)
committerMark Andrews <marka@isc.org>
Tue, 27 Jan 2026 05:05:24 +0000 (16:05 +1100)
Zero length records were not being rejected.

lib/dns/rdata/generic/brid_68.c
lib/dns/rdata/generic/hhit_67.c

index 316a822cd3ed42d0397c0841b01035737ace6f1d..2b772d7e21693333c1fc47f97ae19abe172b343d 100644 (file)
@@ -28,7 +28,7 @@ fromtext_brid(ARGS_FROMTEXT) {
        UNUSED(options);
        UNUSED(callbacks);
 
-       return isc_base64_tobuffer(lexer, target, -1);
+       return isc_base64_tobuffer(lexer, target, -2);
 }
 
 static isc_result_t
index b66e1a7386f42d51429d51f8114a97a7fe378156..68d60a762dd5811e99d218540b7d5eb1e2b86483 100644 (file)
@@ -28,7 +28,7 @@ fromtext_hhit(ARGS_FROMTEXT) {
        UNUSED(options);
        UNUSED(callbacks);
 
-       return isc_base64_tobuffer(lexer, target, -1);
+       return isc_base64_tobuffer(lexer, target, -2);
 }
 
 static isc_result_t