changeset 5282:e700286746c9

7155051: DNS provider may return incorrect results Reviewed-by: weijun, chegar
author xuelei
date Mon, 26 Mar 2012 21:21:55 -0700
parents 98bb27f61a70
children 7e7d55e20754
files src/share/classes/com/sun/jndi/dns/DnsClient.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/jndi/dns/DnsClient.java	Mon Mar 26 17:14:20 2012 +0100
+++ b/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);
             }
         }