]> 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 (GitLab job 6774357) <marka@isc.org>
Tue, 27 Jan 2026 05:46:22 +0000 (05:46 +0000)
Zero length records were not being rejected.

(cherry picked from commit bdb9c838a82558f7b3e1bcf0b9dd7e6f1cfb9aa8)

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

index ac3bbb35ae28d824e5b960c363d3e1571cda509d..beded91e88025f1319f8d5fd1ce0894dc7238625 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 c0b57730e7bfeb77b3c658ab217bd79d63160b4c..b0eb4e9c982eefba49bc9ab320974560a0718e83 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