mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-07 00:52:04 -04:00
Skip TCP dispatch responses that are not ours
When matching the TCP dispatch responses, we should skip the responses
that do not belong to our TCP connection. This can happen with faulty
upstream server that sends invalid QID back to us.
(cherry picked from commit 4ef316e21e)
This commit is contained in:
parent
97fad455d7
commit
b46108b428
1 changed files with 3 additions and 1 deletions
|
|
@ -694,7 +694,9 @@ tcp_recv_success(dns_dispatch_t *disp, isc_region_t *region,
|
|||
|
||||
dns_dispentry_t *resp = cds_lfht_entry(cds_lfht_iter_get_node(&iter),
|
||||
dns_dispentry_t, ht_node);
|
||||
if (resp != NULL) {
|
||||
|
||||
/* Skip responses that are not ours */
|
||||
if (resp != NULL && resp->disp == disp) {
|
||||
if (!resp->reading) {
|
||||
/*
|
||||
* We already got a message for this QID and weren't
|
||||
|
|
|
|||
Loading…
Reference in a new issue