1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

resolve: drop dead code

This commit is contained in:
Yu Watanabe 2018-06-25 13:42:31 +09:00
parent 33987ba0c2
commit fa6a69d783

View File

@ -680,13 +680,8 @@ int dns_cache_put(
/* Second, add in positive entries for all contained RRs */
DNS_ANSWER_FOREACH_FULL(rr, ifindex, flags, answer) {
if ((flags & DNS_ANSWER_CACHEABLE) == 0)
continue;
r = rr_eligible(rr);
if (r < 0)
return r;
if (r == 0)
if ((flags & DNS_ANSWER_CACHEABLE) == 0 ||
!rr_eligible(rr))
continue;
r = dns_cache_put_positive(