]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: ignore additional DNS responses we get while validating
authorLennart Poettering <lennart@poettering.net>
Sat, 26 Dec 2015 11:58:01 +0000 (12:58 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 27 Dec 2015 00:41:39 +0000 (01:41 +0100)
No need to choke on them.

src/resolve/resolved-dns-transaction.c

index 94b540df0db267fb6450e2ca11897607c8ace4f1..1ea8fa44f7f59cf49a7416544d1db4c1aa7fc903 100644 (file)
@@ -518,10 +518,12 @@ void dns_transaction_process_reply(DnsTransaction *t, DnsPacket *p) {
 
         assert(t);
         assert(p);
-        assert(t->state == DNS_TRANSACTION_PENDING);
         assert(t->scope);
         assert(t->scope->manager);
 
+        if (t->state != DNS_TRANSACTION_PENDING)
+                return;
+
         /* Note that this call might invalidate the query. Callers
          * should hence not attempt to access the query or transaction
          * after calling this function. */