resolved: ignore additional DNS responses we get while validating

No need to choke on them.
This commit is contained in:
Lennart Poettering
2015-12-27 01:41:39 +01:00
parent c61d2b441a
commit 5a7e41a370
+3 -1
View 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. */