8310106: sun.security.ssl.SSLHandshake.getHandshakeProducer() incorrectly checks handshakeConsumers

Reviewed-by: wetmore, xuelei
This commit is contained in:
Jaikiran Pai 2023-06-16 05:38:10 +00:00
parent 353e581a53
commit db133dbc02

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2006, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2006, 2023, 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
@ -443,7 +443,7 @@ enum SSLHandshake implements SSLConsumer, HandshakeProducer {
private HandshakeProducer getHandshakeProducer(
ConnectionContext context) {
if (handshakeConsumers.length == 0) {
if (handshakeProducers.length == 0) {
return null;
}