]> 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 21:02:06 +0000 (08:02 +1100)
(cherry picked from commit 7feb0f5b539b939e89061bc1a02a1bdd5b93cea1)

lib/dns/rdata/generic/tlsa_52.c
lib/dns/rdata/in_1/eid_31.c
lib/dns/rdata/in_1/nimloc_32.c

index cf019ae8e47285c3c2ae9a7d9558eb93fbda7dbc..8943ea3f8e9366166e5e282b1003ee4903fea47c 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