resolved: ignore additional DNS responses we get while validating
No need to choke on them.
This commit is contained in:
parent
c61d2b441a
commit
5a7e41a370
|
@ -518,10 +518,12 @@ void dns_transaction_process_reply(DnsTransaction *t, DnsPacket *p) {
|
||||||
|
|
||||||
assert(t);
|
assert(t);
|
||||||
assert(p);
|
assert(p);
|
||||||
assert(t->state == DNS_TRANSACTION_PENDING);
|
|
||||||
assert(t->scope);
|
assert(t->scope);
|
||||||
assert(t->scope->manager);
|
assert(t->scope->manager);
|
||||||
|
|
||||||
|
if (t->state != DNS_TRANSACTION_PENDING)
|
||||||
|
return;
|
||||||
|
|
||||||
/* Note that this call might invalidate the query. Callers
|
/* Note that this call might invalidate the query. Callers
|
||||||
* should hence not attempt to access the query or transaction
|
* should hence not attempt to access the query or transaction
|
||||||
* after calling this function. */
|
* after calling this function. */
|
||||||
|
|
Loading…
Reference in New Issue