]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use isc_one_or_more when calling isc_hex_tobuffer
authorMark Andrews <marka@isc.org>
Fri, 23 Jan 2026 04:08:40 +0000 (15:08 +1100)
committerMark Andrews <marka@isc.org>
Tue, 27 Jan 2026 12:57:34 +0000 (23:57 +1100)
lib/dns/rdata/generic/tlsa_52.c
lib/dns/rdata/in_1/eid_31.c
lib/dns/rdata/in_1/nimloc_32.c

index c28189a81de3095da30f96525528d05c169816b0..e0b3a308b76296617aa32e5764a84d37da9187c7 100644 (file)
@@ -61,7 +61,7 @@ generic_fromtext_tlsa(ARGS_FROMTEXT) {
        /*
         * Certificate Association Data.
         */
-       return isc_hex_tobuffer(lexer, target, -2);
+       return isc_hex_tobuffer(lexer, target, isc_one_or_more);
 }
 
 static isc_result_t
index 0cbad9ae4c6623d8b130f95e7064a7008ae57bce..461d770c01fdb23852b479ada568b3e9a655241f 100644 (file)
@@ -29,7 +29,7 @@ fromtext_in_eid(ARGS_FROMTEXT) {
        UNUSED(rdclass);
        UNUSED(callbacks);
 
-       return isc_hex_tobuffer(lexer, target, -2);
+       return isc_hex_tobuffer(lexer, target, isc_one_or_more);
 }
 
 static isc_result_t
index 80ce2bd55966a43dc8c1a8e558bc49c76bf8a381..7f4c5370f62cc70dce61b096f522c41fe3b7502b 100644 (file)
@@ -29,7 +29,7 @@ fromtext_in_nimloc(ARGS_FROMTEXT) {
        UNUSED(rdclass);
        UNUSED(callbacks);
 
-       return isc_hex_tobuffer(lexer, target, -2);
+       return isc_hex_tobuffer(lexer, target, isc_one_or_more);
 }
 
 static isc_result_t