Merge branch 'bug/main/delv-cfg_parser_reset' into 'main'

Reset bind.keys parser after error on file

See merge request isc-projects/bind9!6468
This commit is contained in:
Mark Andrews
2022-08-19 05:15:14 +00:00
2 changed files with 5 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
5945. [bug] If parsing /etc/bind.key failed, delv could assert
when trying to parse the built in trust anchors as
the parser hadn't been reset. [GL !6468]
5944. [bug] Fix +http-plain-get and +http-plain-post options
support in dig. Thanks to Marco Davids at SIDN for
reporting the problem. [GL !6672]

View File

@@ -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) {