diff --git a/handler/src/main/java/io/netty/handler/ssl/OpenSslClientSessionCache.java b/handler/src/main/java/io/netty/handler/ssl/OpenSslClientSessionCache.java index eb16683eade5..66238c4cfd36 100644 --- a/handler/src/main/java/io/netty/handler/ssl/OpenSslClientSessionCache.java +++ b/handler/src/main/java/io/netty/handler/ssl/OpenSslClientSessionCache.java @@ -99,7 +99,7 @@ boolean setSession(long ssl, OpenSslSession session, String host, int port) { if (toBeRemoved == null) { toBeRemoved = new ArrayList(2); } - toBeRemoved.add(nativeSslSession); + toBeRemoved.add(sslSession); } }