resolve: dns_scope_network_good() does not returns negative errno

This commit is contained in:
Yu Watanabe 2018-06-25 13:20:35 +09:00
parent b4dec49f83
commit 86b112a315
1 changed files with 1 additions and 4 deletions

View File

@ -1380,10 +1380,7 @@ static int dns_transaction_prepare(DnsTransaction *t, usec_t ts) {
dns_transaction_stop_timeout(t);
r = dns_scope_network_good(t->scope);
if (r < 0)
return r;
if (r == 0) {
if (!dns_scope_network_good(t->scope)) {
dns_transaction_complete(t, DNS_TRANSACTION_NETWORK_DOWN);
return 0;
}