changeset 4875:0176c439bd11

7155051: DNS provider may return incorrect results Reviewed-by: weijun, chegar
author xuelei
date Tue, 27 Mar 2012 18:34:43 -0700
parents dbabeb964487
children e574e475c8a6
files src/share/classes/com/sun/jndi/dns/DnsClient.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/jndi/dns/DnsClient.java	Tue Mar 27 08:51:45 2012 +0800
+++ b/src/share/classes/com/sun/jndi/dns/DnsClient.java	Tue Mar 27 18:34:43 2012 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -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);
             }
         }