1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-08-30 05:50:12 +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 */ /* Second, add in positive entries for all contained RRs */
DNS_ANSWER_FOREACH_FULL(rr, ifindex, flags, answer) { DNS_ANSWER_FOREACH_FULL(rr, ifindex, flags, answer) {
if ((flags & DNS_ANSWER_CACHEABLE) == 0) if ((flags & DNS_ANSWER_CACHEABLE) == 0 ||
continue; !rr_eligible(rr))
r = rr_eligible(rr);
if (r < 0)
return r;
if (r == 0)
continue; continue;
r = dns_cache_put_positive( r = dns_cache_put_positive(