diff --git a/lib/dns/rdata/generic/brid_68.c b/lib/dns/rdata/generic/brid_68.c index 460aa4f00e..cf8b50fba0 100644 --- a/lib/dns/rdata/generic/brid_68.c +++ b/lib/dns/rdata/generic/brid_68.c @@ -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 diff --git a/lib/dns/rdata/generic/cert_37.c b/lib/dns/rdata/generic/cert_37.c index 138c296702..d901f44b63 100644 --- a/lib/dns/rdata/generic/cert_37.c +++ b/lib/dns/rdata/generic/cert_37.c @@ -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 diff --git a/lib/dns/rdata/generic/hhit_67.c b/lib/dns/rdata/generic/hhit_67.c index 495e2a50fc..44331bcfe0 100644 --- a/lib/dns/rdata/generic/hhit_67.c +++ b/lib/dns/rdata/generic/hhit_67.c @@ -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 diff --git a/lib/dns/rdata/generic/ipseckey_45.c b/lib/dns/rdata/generic/ipseckey_45.c index 7b43c5111f..c7390891e8 100644 --- a/lib/dns/rdata/generic/ipseckey_45.c +++ b/lib/dns/rdata/generic/ipseckey_45.c @@ -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 diff --git a/lib/dns/rdata/generic/key_25.c b/lib/dns/rdata/generic/key_25.c index 503e450c3d..b30a8dae72 100644 --- a/lib/dns/rdata/generic/key_25.c +++ b/lib/dns/rdata/generic/key_25.c @@ -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; diff --git a/lib/dns/rdata/generic/keydata_65533.c b/lib/dns/rdata/generic/keydata_65533.c index 2a5d78cc23..ee8cf0307a 100644 --- a/lib/dns/rdata/generic/keydata_65533.c +++ b/lib/dns/rdata/generic/keydata_65533.c @@ -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 diff --git a/lib/dns/rdata/generic/openpgpkey_61.c b/lib/dns/rdata/generic/openpgpkey_61.c index 9ccfaeef75..74e3147eca 100644 --- a/lib/dns/rdata/generic/openpgpkey_61.c +++ b/lib/dns/rdata/generic/openpgpkey_61.c @@ -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 diff --git a/lib/dns/rdata/generic/rrsig_46.c b/lib/dns/rdata/generic/rrsig_46.c index 9a06a4892d..80b6fbc711 100644 --- a/lib/dns/rdata/generic/rrsig_46.c +++ b/lib/dns/rdata/generic/rrsig_46.c @@ -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; diff --git a/lib/dns/rdata/generic/sig_24.c b/lib/dns/rdata/generic/sig_24.c index fd7487897f..cedf400b7f 100644 --- a/lib/dns/rdata/generic/sig_24.c +++ b/lib/dns/rdata/generic/sig_24.c @@ -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; diff --git a/lib/dns/rdata/in_1/dhcid_49.c b/lib/dns/rdata/in_1/dhcid_49.c index 6f2b9dfb9f..7486ca86bd 100644 --- a/lib/dns/rdata/in_1/dhcid_49.c +++ b/lib/dns/rdata/in_1/dhcid_49.c @@ -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