8293176: SSLEngine handshaker does not send an alert after a bad parameters

Reviewed-by: mdonovan, jnimeh
This commit is contained in:
Daniel Jeliński 2023-09-27 07:33:52 +00:00
parent fd52be2a3c
commit fee9d3362c
2 changed files with 99 additions and 1 deletions

View file

@ -1270,7 +1270,12 @@ final class SSLEngineImpl extends SSLEngine implements SSLTransport {
Map.Entry<Byte, ByteBuffer> me =
context.delegatedActions.poll();
if (me != null) {
context.dispatch(me.getKey(), me.getValue());
try {
context.dispatch(me.getKey(), me.getValue());
} catch (Exception e) {
throw context.conContext.fatal(Alert.INTERNAL_ERROR,
"Unhandled exception", e);
}
}
}
return null;