]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve: do not complete stream transaction when it is under retrying
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Jun 2018 04:43:36 +0000 (13:43 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Jun 2018 04:43:36 +0000 (13:43 +0900)
src/resolve/resolved-dns-transaction.c

index f2347a414bdb7abb80f5d85e69e66872dd6508f6..b72a990783b9dff7a5987fbdee4c0855edfb01cf 100644 (file)
@@ -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;