diff options
author | Luca Boccassi <bluca@debian.org> | 2020-12-28 01:23:14 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-12-28 07:08:12 +0100 |
commit | 5def1f11f84fd4000a0f7c9ed1294b04f0cea703 (patch) | |
tree | 9ec0452f0bbb01c9186a750a4fc2a082040d8989 /src | |
parent | sd-dhcp-client: avoid "maybe-uninitialized" warning in client_timeout_resend() (diff) | |
download | systemd-5def1f11f84fd4000a0f7c9ed1294b04f0cea703.tar.xz systemd-5def1f11f84fd4000a0f7c9ed1294b04f0cea703.zip |
shared/dns: fix dlopen_idn return code check
Fixes https://github.com/systemd/systemd/issues/18078
Diffstat (limited to 'src')
-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; } |