From da0c525166ba6491e7006f6142d1c7f4344f8fd6 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Thu, 13 Nov 2025 14:22:37 +0100 Subject: [PATCH] Fix RR Type AMTRELAY type nogateway to print a relay of '.', RFC8777. --- host2str.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/host2str.c b/host2str.c index 61dcece7..d0a20d42 100644 --- a/host2str.c +++ b/host2str.c @@ -1422,6 +1422,8 @@ ldns_rdf2buffer_str_amtrelay(ldns_buffer *output, const ldns_rdf *rdf) precedence, discovery_optional, relay_type); if (relay) (void) ldns_rdf2buffer_str(output, relay); + else + ldns_buffer_printf(output, "."); ldns_rdf_deep_free(relay); return ldns_buffer_status(output); -- 2.47.3