From 71f023a1c395d34be690147da9162a25a5041e6f Mon Sep 17 00:00:00 2001 From: Matthijs Mekking Date: Fri, 17 Nov 2023 13:45:17 +0100 Subject: [PATCH] Recognize escapes when reading the public key Escapes are valid in DNS names, and should be recognized when reading the public key from disk. --- lib/dns/dst_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns/dst_api.c b/lib/dns/dst_api.c index d01062781a..af53947ac6 100644 --- a/lib/dns/dst_api.c +++ b/lib/dns/dst_api.c @@ -1606,7 +1606,7 @@ dst_key_read_public(const char *filename, int type, isc_mem_t *mctx, isc_token_t token; isc_result_t ret; dns_rdata_t rdata = DNS_RDATA_INIT; - unsigned int opt = ISC_LEXOPT_DNSMULTILINE; + unsigned int opt = ISC_LEXOPT_DNSMULTILINE | ISC_LEXOPT_ESCAPE; dns_rdataclass_t rdclass = dns_rdataclass_in; isc_lexspecials_t specials; uint32_t ttl = 0;