mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 00:54:38 +02:00
8186186: GSSContext.isEstablished() can return true on error state
Reviewed-by: weijun
This commit is contained in:
parent
73ac71d532
commit
dcb930f123
2 changed files with 60 additions and 2 deletions
|
@ -583,7 +583,8 @@ public class SpNegoContext implements GSSContextSpi {
|
|||
}
|
||||
} else {
|
||||
negoResult = SpNegoToken.NegoResult.REJECT;
|
||||
state = STATE_DONE;
|
||||
state = STATE_DELETED;
|
||||
throw new GSSException(GSSException.FAILURE);
|
||||
}
|
||||
|
||||
if (DEBUG) {
|
||||
|
@ -642,7 +643,8 @@ public class SpNegoContext implements GSSContextSpi {
|
|||
}
|
||||
} else {
|
||||
negoResult = SpNegoToken.NegoResult.REJECT;
|
||||
state = STATE_DONE;
|
||||
state = STATE_DELETED;
|
||||
throw new GSSException(GSSException.FAILURE);
|
||||
}
|
||||
|
||||
// generate SPNEGO token
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue