summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-06-13 13:43:36 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-06-13 13:43:36 +0900
commitdaab72ea445f5941e4b0a077115e6785b430a9ff (patch)
tree39b61f92c3c7e470e8156108d443b7c53d60a3e9
parent3da3cdd592d75a8a94021c72f07cbbbdab2ffd21 (diff)
downloadsystemd-daab72ea445f5941e4b0a077115e6785b430a9ff.tar.gz
resolve: do not complete stream transaction when it is under retrying
-rw-r--r--src/resolve/resolved-dns-transaction.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-transaction.c b/src/resolve/resolved-dns-transaction.c
index f2347a414b..b72a990783 100644
--- a/src/resolve/resolved-dns-transaction.c
+++ b/src/resolve/resolved-dns-transaction.c
@@ -467,9 +467,11 @@ static void on_transaction_stream_error(DnsTransaction *t, int error) {
/* If the LLMNR/TCP connection failed, the host doesn't support LLMNR, and we cannot answer the
* question on this scope. */
dns_transaction_complete(t, DNS_TRANSACTION_NOT_FOUND);
+ return;
}
dns_transaction_retry(t, true);
+ return;
}
if (error != 0) {
t->answer_errno = error;