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

Backport-of: db133dbc02
This commit is contained in:
Aleksey Shipilev
2023-08-15 07:06:19 +00:00
committed by Vitaly Provodin
parent 666f684622
commit 32aed8a740

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;
}