8020696: Merge problem for KdcComm.java
Reviewed-by: chegar
This commit is contained in:
parent
ff1d4ae905
commit
2fac55ced5
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user