summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/dns-domain.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shared/dns-domain.c b/src/shared/dns-domain.c
index a127e594ac..ef81341eca 100644
--- a/src/shared/dns-domain.c
+++ b/src/shared/dns-domain.c
@@ -912,12 +912,11 @@ bool dns_name_is_root(const char *name) {
}
bool dns_name_is_single_label(const char *name) {
- char label[DNS_LABEL_MAX+1];
int r;
assert(name);
- r = dns_label_unescape(&name, label, sizeof(label));
+ r = dns_name_parent(&name);
if (r <= 0)
return false;