7155051: DNS provider may return incorrect results
Reviewed-by: weijun, chegar
This commit is contained in:
parent
c0c3fb980d
commit
ce4e70b60b
@ -577,8 +577,8 @@ public class DnsClient {
|
||||
// enqueue only the first response, responses for retries are ignored.
|
||||
//
|
||||
synchronized (queuesLock) {
|
||||
if (reqs.contains(xid)) { // enqueue only the first response
|
||||
resps.put(xid, pkt);
|
||||
if (reqs.contains(hdr.xid)) { // enqueue only the first response
|
||||
resps.put(hdr.xid, pkt);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user