From: Lennart Poettering Date: Sat, 26 Dec 2015 11:58:01 +0000 (+0100) Subject: resolved: ignore additional DNS responses we get while validating X-Git-Tag: v229~189^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a7e41a370e39f68707d3c2ee9cc60d8c0bd33da;p=thirdparty%2Fsystemd.git resolved: ignore additional DNS responses we get while validating No need to choke on them. --- diff --git a/src/resolve/resolved-dns-transaction.c b/src/resolve/resolved-dns-transaction.c index 94b540df0db..1ea8fa44f7f 100644 --- a/src/resolve/resolved-dns-transaction.c +++ b/src/resolve/resolved-dns-transaction.c @@ -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. */