Skip to content

Commit

Permalink
resolve: dns_scope_network_good() does not returns negative errno
Browse files Browse the repository at this point in the history
(cherry picked from commit 86b112a)
  • Loading branch information
yuwata authored and keszybz committed Oct 29, 2018
1 parent 8f9d958 commit 4e2b091
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/resolve/resolved-dns-transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4e2b091

Please sign in to comment.