resolved: ignore additional DNS responses we get while validating

No need to choke on them.
This commit is contained in:
Lennart Poettering 2015-12-26 12:58:01 +01:00
parent c61d2b441a
commit 5a7e41a370
1 changed files with 3 additions and 1 deletions

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. */