mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Reset parser before parsing of internal trust anchor
It might be reused if /etc/bind.keys exists, but failed correct parsing. Release traces of previous parsing attempt of different data. (cherry picked from commit dc07394c4724c1e1235af85dd8c044af70da93ae)
This commit is contained in:
parent
b6caedd07c
commit
fdd9e39dfe
1 changed files with 1 additions and 0 deletions
|
|
@ -845,6 +845,7 @@ setup_dnsseckeys(dns_client_t *client) {
|
|||
|
||||
isc_buffer_init(&b, anchortext, sizeof(anchortext) - 1);
|
||||
isc_buffer_add(&b, sizeof(anchortext) - 1);
|
||||
cfg_parser_reset(parser);
|
||||
result = cfg_parse_buffer(parser, &b, NULL, 0,
|
||||
&cfg_type_bindkeys, 0, &bindkeys);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue