summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dns-transaction.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-05 04:15:45 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-05 04:15:45 +0200
commit13b551acb68695716cb4029531b5dec0759efa53 (patch)
treea81150016492e9c5b2d4ec25d46e88e165ac1030 /src/resolve/resolved-dns-transaction.c
parent8c0b803b97bb0ee6603d9be85fb6b69cd6081eaf (diff)
resolved: when sending fails, don't try connecting to the next DNS server if we actually use LLMNR as protocol
Diffstat (limited to 'src/resolve/resolved-dns-transaction.c')
-rw-r--r--src/resolve/resolved-dns-transaction.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-transaction.c b/src/resolve/resolved-dns-transaction.c
index 83933c6502..ad1b277555 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);