summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dns-packet.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-01-02 22:11:38 +0100
committerLennart Poettering <lennart@poettering.net>2016-01-02 22:16:16 +0100
commite48b9a6490222f59201615a1be25c0a46d7d79b5 (patch)
tree518271dcecc892a8965c669c5ce2abe94f107b13 /src/resolve/resolved-dns-packet.c
parentf2af5ea3cbf54998ed41d2d21a3448abb92ca7ff (diff)
resolved: fix serialization of the root domain
Diffstat (limited to 'src/resolve/resolved-dns-packet.c')
-rw-r--r--src/resolve/resolved-dns-packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-packet.c b/src/resolve/resolved-dns-packet.c
index 5cc96308da..4750bf1f5d 100644
--- a/src/resolve/resolved-dns-packet.c
+++ b/src/resolve/resolved-dns-packet.c
@@ -499,7 +499,7 @@ int dns_packet_append_name(
saved_size = p->size;
- while (*name) {
+ while (!dns_name_is_root(name)) {
const char *z = name;
char label[DNS_LABEL_MAX];
size_t n = 0;