]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/dns: fix dlopen_idn return code check
authorLuca Boccassi <bluca@debian.org>
Mon, 28 Dec 2020 00:23:14 +0000 (00:23 +0000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 28 Dec 2020 06:08:12 +0000 (15:08 +0900)
Fixes https://github.com/systemd/systemd/issues/18078

src/shared/dns-domain.c

index cc5ad582db7c25de20d9dfafebeac29799630101..e43aa12882a84396cafc020e5fad15c28e91a917 100644 (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;
         }