Fix compilation error introduced by abf5e9fda5

This commit is contained in:
Norman Maurer 2016-08-12 22:19:01 +02:00
parent 1e333f5614
commit 93702ac877
2 changed files with 4 additions and 4 deletions

View File

@ -104,8 +104,8 @@ class OpenSslKeyMaterialManager {
// Only encode one time
PemEncoded encoded = PemX509Certificate.toPEM(ByteBufAllocator.DEFAULT, true, certificates);
try {
keyCertChainBio = newBIO(encoded.content().retainedSlice());
keyCertChainBio2 = newBIO(encoded.content().retainedSlice());
keyCertChainBio = newBIO(encoded.content().slice().retain());
keyCertChainBio2 = newBIO(encoded.content().slice().retain());
if (key != null) {
keyBio = toBIO(key);

View File

@ -621,8 +621,8 @@ public abstract class ReferenceCountedOpenSslContext extends SslContext implemen
try {
// Only encode one time
encoded = PemX509Certificate.toPEM(ByteBufAllocator.DEFAULT, true, keyCertChain);
keyCertChainBio = newBIO(encoded.content().retainedSlice());
keyCertChainBio2 = newBIO(encoded.content().retainedSlice());
keyCertChainBio = newBIO(encoded.content().slice().retain());
keyCertChainBio2 = newBIO(encoded.content().slice().retain());
if (key != null) {
keyBio = toBIO(key);