From: Lennart Poettering Date: Tue, 5 Aug 2014 02:15:45 +0000 (+0200) Subject: resolved: when sending fails, don't try connecting to the next DNS server if we actua... X-Git-Tag: v216~244 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=13b551acb68695716cb4029531b5dec0759efa53;p=elogind.git resolved: when sending fails, don't try connecting to the next DNS server if we actually use LLMNR as protocol --- diff --git a/src/resolve/resolved-dns-transaction.c b/src/resolve/resolved-dns-transaction.c index 83933c650..ad1b27755 100644 --- a/src/resolve/resolved-dns-transaction.c +++ b/src/resolve/resolved-dns-transaction.c @@ -523,6 +523,11 @@ int dns_transaction_go(DnsTransaction *t) { return 0; } if (r < 0) { + if (t->scope->protocol != DNS_PROTOCOL_DNS) { + dns_transaction_complete(t, DNS_TRANSACTION_RESOURCES); + return 0; + } + /* Couldn't send? Try immediately again, with a new server */ dns_scope_next_dns_server(t->scope);