summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dns-domain.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-20 14:47:35 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-20 14:48:18 +0200
commitbe754d5443e5fe44ead733ad509b127409cdb0f0 (patch)
treefcd52bb598e1e290ac016516ced62d182ad819fc /src/resolve/resolved-dns-domain.c
parent03664a62914782dbd8f069bbcf8a0c8ca1df7010 (diff)
resolved: fix which return codes we check
Discovered by Lukas Nykryn
Diffstat (limited to 'src/resolve/resolved-dns-domain.c')
-rw-r--r--src/resolve/resolved-dns-domain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-domain.c b/src/resolve/resolved-dns-domain.c
index 6152047ecb..8ed1ecf0a4 100644
--- a/src/resolve/resolved-dns-domain.c
+++ b/src/resolve/resolved-dns-domain.c
@@ -434,8 +434,8 @@ int dns_name_endswith(const char *name, const char *suffix) {
saved_n = n;
q = dns_label_unescape(&s, ls, sizeof(ls));
- if (r < 0)
- return r;
+ if (q < 0)
+ return q;
w = dns_label_undo_idna(ls, q, ls, sizeof(ls));
if (w < 0)
return w;