]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use isc__zero_or_more when calling isc_base64_tobuffer
authorMark Andrews <marka@isc.org>
Fri, 23 Jan 2026 04:11:15 +0000 (15:11 +1100)
committerMark Andrews <marka@isc.org>
Tue, 27 Jan 2026 21:02:06 +0000 (08:02 +1100)
(cherry picked from commit 58432895507569116d88f11c48375ca3a82bd875)

lib/dns/dst_parse.c
lib/dns/rdata/generic/doa_259.c
lib/dns/rdata/generic/sink_40.c

index 8da342b89ac44ad2cf70df51792f5e379f514b34..c4b3098f1be39078cb0f406e91dd07054c306c45 100644 (file)
@@ -549,7 +549,7 @@ dst__privstruct_parse(dst_key_t *key, unsigned int alg, isc_lex_t *lex,
                data = isc_mem_get(mctx, MAXFIELDSIZE);
 
                isc_buffer_init(&b, data, MAXFIELDSIZE);
-               CHECK(isc_base64_tobuffer(lex, &b, -1));
+               CHECK(isc_base64_tobuffer(lex, &b, isc_zero_or_more));
 
                isc_buffer_usedregion(&b, &r);
                priv->elements[n].length = r.length;
index be926981f14c8337dffbd6cc03c9ff2cdd603f6a..1398c782b67758901c4ddd1a5b176a74b51a94af 100644 (file)
@@ -67,7 +67,7 @@ fromtext_doa(ARGS_FROMTEXT) {
                return ISC_R_SUCCESS;
        } else {
                isc_lex_ungettoken(lexer, &token);
-               return isc_base64_tobuffer(lexer, target, -1);
+               return isc_base64_tobuffer(lexer, target, isc_zero_or_more);
        }
 }
 
index 4ce1cf8808d2516e592da671da94e3a863d8c7aa..0fb8aa5c07f4fb23c3b5e23d77aec1c653bc190e 100644 (file)
@@ -54,7 +54,7 @@ fromtext_sink(ARGS_FROMTEXT) {
        }
        RETERR(uint8_tobuffer(token.value.as_ulong, target));
 
-       return isc_base64_tobuffer(lexer, target, -1);
+       return isc_base64_tobuffer(lexer, target, isc_zero_or_more);
 }
 
 static isc_result_t