8020696: Merge problem for KdcComm.java

Reviewed-by: chegar
This commit is contained in:
Weijun Wang 2013-07-17 18:46:00 +08:00
parent ff1d4ae905
commit 2fac55ced5

View File

@ -227,15 +227,15 @@ public final class KdcComm {
try {
ibuf = sendIfPossible(obuf, tempKdc.next(), useTCP);
} catch(Exception first) {
boolean ok = false;
while(tempKdc.hasNext()) {
try {
ibuf = sendIfPossible(obuf, tempKdc.next(), useTCP);
if (ibuf != null) {
return ibuf;
}
ok = true;
break;
} catch(Exception ignore) {}
}
throw first;
if (!ok) throw first;
}
if (ibuf == null) {
throw new IOException("Cannot get a KDC reply");