29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
From ba9a140e1f3165145164a5923c65461824d80ab3 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
|
|
Date: Thu, 11 Aug 2022 11:41:30 +0200
|
|
Subject: [PATCH] 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.
|
|
|
|
Conflict: NA
|
|
Reference: https://gitlab.isc.org/isc-projects/bind9/-/commit/ba9a140e1f3165145164a5923c65461824d80ab3
|
|
(cherry picked from commit dc07394c4724c1e1235af85dd8c044af70da93ae)
|
|
---
|
|
bin/delv/delv.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/bin/delv/delv.c b/bin/delv/delv.c
|
|
index f4c7c015dd..0702eec862 100644
|
|
--- a/bin/delv/delv.c
|
|
+++ b/bin/delv/delv.c
|
|
@@ -852,6 +852,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) {
|
|
--
|
|
2.23.0
|