summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-01 00:39:59 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-01 00:58:12 +0200
commit7da40fc10879d122cc6ebfba9609b56212a0ef77 (patch)
treeb5752f9be93c0fe516964b95b632360cd9c559a8 /src
parentbdf10b5b4d9e7abdc08bdca4b073d021b0043d1f (diff)
resolved: fix negative caching of IDNA domains
Diffstat (limited to 'src')
-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 80a2b3cd32..6152047ecb 100644
--- a/src/resolve/resolved-dns-domain.c
+++ b/src/resolve/resolved-dns-domain.c
@@ -324,7 +324,7 @@ unsigned long dns_name_hash_func(const void *s, const uint8_t hash_key[HASH_KEY_
k = dns_label_undo_idna(label, r, label, sizeof(label));
if (k < 0)
- return k;
+ break;
if (k > 0)
r = k;
@@ -436,7 +436,7 @@ int dns_name_endswith(const char *name, const char *suffix) {
q = dns_label_unescape(&s, ls, sizeof(ls));
if (r < 0)
return r;
- w = dns_label_undo_idna(ls, r, ls, sizeof(ls));
+ w = dns_label_undo_idna(ls, q, ls, sizeof(ls));
if (w < 0)
return w;
if (w > 0)