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

Backport-of: db133dbc02
This commit is contained in:
Goetz Lindenmaier
2023-12-07 08:29:03 +00:00
committed by Vitaly Provodin
parent a2b3536096
commit 8c8719cb4e

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2006, 2019, 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
@@ -446,7 +446,7 @@ enum SSLHandshake implements SSLConsumer, HandshakeProducer {
private HandshakeProducer getHandshakeProducer(
ConnectionContext context) {
if (handshakeConsumers.length == 0) {
if (handshakeProducers.length == 0) {
return null;
}