7155051: DNS provider may return incorrect results
authorxuelei
Mon, 26 Mar 2012 21:21:55 -0700
changeset 12295 2e08a27dd105
parent 12294 f313586fc3cc
child 12296 cbc9b437292e
7155051: DNS provider may return incorrect results Reviewed-by: weijun, chegar
jdk/src/share/classes/com/sun/jndi/dns/DnsClient.java
--- a/jdk/src/share/classes/com/sun/jndi/dns/DnsClient.java	Mon Mar 26 17:14:20 2012 +0100
+++ b/jdk/src/share/classes/com/sun/jndi/dns/DnsClient.java	Mon Mar 26 21:21:55 2012 -0700
@@ -577,8 +577,8 @@
         // 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);
             }
         }