diff options
author | Luca Boccassi <bluca@debian.org> | 2020-12-28 00:23:14 +0000 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-12-28 15:08:12 +0900 |
commit | 5def1f11f84fd4000a0f7c9ed1294b04f0cea703 (patch) | |
tree | 9ec0452f0bbb01c9186a750a4fc2a082040d8989 /src/shared | |
parent | 1835a8a1055f797f8025a572a53088e2ccf0f1c6 (diff) | |
download | systemd-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.c | 2 |
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; } |