summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2020-12-28 00:23:14 +0000
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-12-28 15:08:12 +0900
commit5def1f11f84fd4000a0f7c9ed1294b04f0cea703 (patch)
tree9ec0452f0bbb01c9186a750a4fc2a082040d8989 /src/shared
parent1835a8a1055f797f8025a572a53088e2ccf0f1c6 (diff)
downloadsystemd-5def1f11f84fd4000a0f7c9ed1294b04f0cea703.tar.gz
shared/dns: fix dlopen_idn return code check
Fixes https://github.com/systemd/systemd/issues/18078
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/dns-domain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/dns-domain.c b/src/shared/dns-domain.c
index cc5ad582db..e43aa12882 100644
--- a/src/shared/dns-domain.c
+++ b/src/shared/dns-domain.c
@@ -1280,7 +1280,7 @@ int dns_name_apply_idna(const char *name, char **ret) {
int r;
r = dlopen_idn();
- if (r == EOPNOTSUPP) {
+ if (r == -EOPNOTSUPP) {
*ret = NULL;
return 0;
}