shared/dns: fix dlopen_idn return code check

Fixes https://github.com/systemd/systemd/issues/18078
This commit is contained in:
Luca Boccassi 2020-12-28 00:23:14 +00:00 committed by Yu Watanabe
parent 1835a8a105
commit 5def1f11f8
1 changed files with 1 additions and 1 deletions

View File

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