From e05dd7718d0b32e039c9e0f7bf3875079d1a359d Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 24 Sep 2022 09:31:00 +0900 Subject: sd-network: make sd_network_link_get_dns() or friends return -ENODATA To make them consistent with other functions. --- src/resolve/resolved-link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/resolve') 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; -- cgit v1.2.3