1.1 --- a/src/share/classes/com/sun/jndi/ldap/ext/StartTlsResponseImpl.java Fri Aug 07 11:02:19 2020 +0000 1.2 +++ b/src/share/classes/com/sun/jndi/ldap/ext/StartTlsResponseImpl.java Mon Jun 22 14:30:37 2020 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -268,7 +268,7 @@ 1.11 1.12 // Replace SSL streams with the original streams 1.13 ldapConnection.replaceStreams( 1.14 - originalInputStream, originalOutputStream); 1.15 + originalInputStream, originalOutputStream, false); 1.16 1.17 if (debug) { 1.18 System.out.println("StartTLS: closing SSL Socket"); 1.19 @@ -358,7 +358,7 @@ 1.20 1.21 // Replace original streams with the new SSL streams 1.22 ldapConnection.replaceStreams(sslSocket.getInputStream(), 1.23 - sslSocket.getOutputStream()); 1.24 + sslSocket.getOutputStream(), true); 1.25 if (debug) { 1.26 System.out.println("StartTLS: Replaced IO Streams"); 1.27 }