mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
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;
|
||||
|
||||
r = dlopen_idn();
|
||||
if (r == EOPNOTSUPP) {
|
||||
if (r == -EOPNOTSUPP) {
|
||||
*ret = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user