]> 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 13:25:04 +0000 (00:25 +1100)
lib/dns/dst_parse.c
lib/dns/rdata/generic/doa_259.c
lib/dns/rdata/generic/sink_40.c

index 6a402c79e3bf698c1ab24bd9e9c75363da6f2470..d058697ab46209b7f7ae4eb0e0309523ad36f257 100644 (file)
@@ -554,7 +554,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