Use isc_one_or_more when calling isc_base64_tobuffer

(cherry picked from commit 62fd89d4a1)
This commit is contained in:
Mark Andrews 2026-01-23 14:59:37 +11:00
parent e8f2bae031
commit f4e04e098a
10 changed files with 10 additions and 10 deletions

View file

@ -28,7 +28,7 @@ fromtext_brid(ARGS_FROMTEXT) {
UNUSED(options);
UNUSED(callbacks);
return isc_base64_tobuffer(lexer, target, -2);
return isc_base64_tobuffer(lexer, target, isc_one_or_more);
}
static isc_result_t

View file

@ -58,7 +58,7 @@ fromtext_cert(ARGS_FROMTEXT) {
RETTOK(dns_secalg_fromtext(&secalg, &token.value.as_textregion));
RETERR(mem_tobuffer(target, &secalg, 1));
return isc_base64_tobuffer(lexer, target, -2);
return isc_base64_tobuffer(lexer, target, isc_one_or_more);
}
static isc_result_t

View file

@ -28,7 +28,7 @@ fromtext_hhit(ARGS_FROMTEXT) {
UNUSED(options);
UNUSED(callbacks);
return isc_base64_tobuffer(lexer, target, -2);
return isc_base64_tobuffer(lexer, target, isc_one_or_more);
}
static isc_result_t

View file

@ -118,7 +118,7 @@ fromtext_ipseckey(ARGS_FROMTEXT) {
/*
* Public key.
*/
return isc_base64_tobuffer(lexer, target, -2);
return isc_base64_tobuffer(lexer, target, isc_one_or_more);
}
static isc_result_t

View file

@ -89,7 +89,7 @@ generic_fromtext_key(ARGS_FROMTEXT) {
*/
used = isc_buffer_usedlength(target);
RETERR(isc_base64_tobuffer(lexer, target, -2));
RETERR(isc_base64_tobuffer(lexer, target, isc_one_or_more));
if (alg == DNS_KEYALG_PRIVATEDNS || alg == DNS_KEYALG_PRIVATEOID) {
isc_buffer_t b;

View file

@ -83,7 +83,7 @@ fromtext_keydata(ARGS_FROMTEXT) {
return ISC_R_SUCCESS;
}
return isc_base64_tobuffer(lexer, target, -2);
return isc_base64_tobuffer(lexer, target, isc_one_or_more);
}
static isc_result_t

View file

@ -29,7 +29,7 @@ fromtext_openpgpkey(ARGS_FROMTEXT) {
/*
* Keyring.
*/
return isc_base64_tobuffer(lexer, target, -2);
return isc_base64_tobuffer(lexer, target, isc_one_or_more);
}
static isc_result_t

View file

@ -157,7 +157,7 @@ fromtext_rrsig(ARGS_FROMTEXT) {
*/
used = isc_buffer_usedlength(target);
RETERR(isc_base64_tobuffer(lexer, target, -2));
RETERR(isc_base64_tobuffer(lexer, target, isc_one_or_more));
if (alg == DNS_KEYALG_PRIVATEDNS || alg == DNS_KEYALG_PRIVATEOID) {
isc_buffer_t b;

View file

@ -121,7 +121,7 @@ fromtext_sig(ARGS_FROMTEXT) {
*/
used = isc_buffer_usedlength(target);
RETERR(isc_base64_tobuffer(lexer, target, -2));
RETERR(isc_base64_tobuffer(lexer, target, isc_one_or_more));
if (alg == DNS_KEYALG_PRIVATEDNS || alg == DNS_KEYALG_PRIVATEOID) {
isc_buffer_t b;

View file

@ -29,7 +29,7 @@ fromtext_in_dhcid(ARGS_FROMTEXT) {
UNUSED(options);
UNUSED(callbacks);
return isc_base64_tobuffer(lexer, target, -2);
return isc_base64_tobuffer(lexer, target, isc_one_or_more);
}
static isc_result_t