summaryrefslogtreecommitdiffstats
path: root/src/resolve
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-09-24 02:31:00 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-09-27 03:42:31 +0200
commite05dd7718d0b32e039c9e0f7bf3875079d1a359d (patch)
tree31dd3087ce69e79f563d6d47343b827bf1241f11 /src/resolve
parentsd-network: drop fallback values (diff)
downloadsystemd-e05dd7718d0b32e039c9e0f7bf3875079d1a359d.tar.xz
systemd-e05dd7718d0b32e039c9e0f7bf3875079d1a359d.zip
sd-network: make sd_network_link_get_dns() or friends return -ENODATA
To make them consistent with other functions.
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/resolved-link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-link.c b/src/resolve/resolved-link.c
index cd960e25b1..35b31a5317 100644
--- a/src/resolve/resolved-link.c
+++ b/src/resolve/resolved-link.c
@@ -469,7 +469,7 @@ static int link_update_dnssec_negative_trust_anchors(Link *l) {
r = sd_network_link_get_dnssec_negative_trust_anchors(l->ifindex, &ntas);
if (r == -ENODATA)
- return r;
+ return 0;
if (r < 0)
return r;