shared/dns: fix dlopen_idn return code check
Fixes https://github.com/systemd/systemd/issues/18078
This commit is contained in:
parent
1835a8a105
commit
5def1f11f8
|
@ -1280,7 +1280,7 @@ int dns_name_apply_idna(const char *name, char **ret) {
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
r = dlopen_idn();
|
r = dlopen_idn();
|
||||||
if (r == EOPNOTSUPP) {
|
if (r == -EOPNOTSUPP) {
|
||||||
*ret = NULL;
|
*ret = NULL;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue