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
  • Loading branch information
yuwata committed Jun 25, 2018
1 parent b4dec49 commit 86b112a
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 86b112a

Please sign in to comment.