summaryrefslogtreecommitdiffstats
path: root/src/resolve/resolved-dns-packet.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-08-08 07:30:40 +0200
committerLennart Poettering <lennart@poettering.net>2018-08-08 12:24:32 +0200
commitb2776a60f371de0cefd4141a68ada8f594f14560 (patch)
treec956c6b54a1ba2d0d78de1e98bffd2d8d52d5a18 /src/resolve/resolved-dns-packet.c
parentMerge pull request #9830 from yuwata/journalctl-help (diff)
downloadsystemd-b2776a60f371de0cefd4141a68ada8f594f14560.tar.xz
systemd-b2776a60f371de0cefd4141a68ada8f594f14560.zip
resolve: do not compress target names in SRV records
Fixes #9793.
Diffstat (limited to '')
-rw-r--r--src/resolve/resolved-dns-packet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-packet.c b/src/resolve/resolved-dns-packet.c
index 2cc606f363..a1d5d49dd8 100644
--- a/src/resolve/resolved-dns-packet.c
+++ b/src/resolve/resolved-dns-packet.c
@@ -852,7 +852,9 @@ int dns_packet_append_rr(DnsPacket *p, const DnsResourceRecord *rr, const DnsAns
if (r < 0)
goto fail;
- r = dns_packet_append_name(p, rr->srv.name, true, false, NULL);
+ /* RFC 2782 states "Unless and until permitted by future standards
+ * action, name compression is not to be used for this field." */
+ r = dns_packet_append_name(p, rr->srv.name, false, false, NULL);
break;
case DNS_TYPE_PTR: