From: W.C.A. Wijngaards Date: Thu, 13 Nov 2025 13:22:37 +0000 (+0100) Subject: Fix RR Type AMTRELAY type nogateway to print a relay of '.', RFC8777. X-Git-Tag: 1.9.0-rc.1~19^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da0c525166ba6491e7006f6142d1c7f4344f8fd6;p=thirdparty%2Fldns.git Fix RR Type AMTRELAY type nogateway to print a relay of '.', RFC8777. --- 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);