1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 10:25:37 +03:00

resolved: fix which return codes we check

Discovered by Lukas Nykryn
This commit is contained in:
Lennart Poettering 2014-08-20 14:47:35 +02:00
parent 03664a6291
commit be754d5443
Notes: Lennart Poettering 2014-10-24 16:57:35 +02:00
Backport: bugfix

View File

@ -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;