mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Use isc__zero_or_more when calling isc_base64_tobuffer
(cherry picked from commit 5843289550)
This commit is contained in:
parent
f4e04e098a
commit
5bb645a24c
3 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue