directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dran...@apache.org
Subject directory-kerby git commit: DIRKRB-544 Fixed a buffer leakage in Netty KdcHandler. Contributed by Gerard Gagliano
Date Sat, 02 Apr 2016 01:00:38 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/trunk 6087e0e44 -> f70b91784


DIRKRB-544 Fixed a buffer leakage in Netty KdcHandler. Contributed by Gerard Gagliano


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/f70b9178
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/f70b9178
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/f70b9178

Branch: refs/heads/trunk
Commit: f70b91784c2c913b9349f4626d57bb55093da05f
Parents: 6087e0e
Author: Kai Zheng <kai.zheng@intel.com>
Authored: Sat Apr 2 09:00:15 2016 +0800
Committer: Kai Zheng <kai.zheng@intel.com>
Committed: Sat Apr 2 09:00:15 2016 +0800

----------------------------------------------------------------------
 .../java/org/apache/kerby/kerberos/kdc/impl/NettyKdcHandler.java    | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/f70b9178/kerby-kdc/src/main/java/org/apache/kerby/kerberos/kdc/impl/NettyKdcHandler.java
----------------------------------------------------------------------
diff --git a/kerby-kdc/src/main/java/org/apache/kerby/kerberos/kdc/impl/NettyKdcHandler.java
b/kerby-kdc/src/main/java/org/apache/kerby/kerberos/kdc/impl/NettyKdcHandler.java
index ff2766b..d442108 100644
--- a/kerby-kdc/src/main/java/org/apache/kerby/kerberos/kdc/impl/NettyKdcHandler.java
+++ b/kerby-kdc/src/main/java/org/apache/kerby/kerberos/kdc/impl/NettyKdcHandler.java
@@ -46,6 +46,7 @@ public class NettyKdcHandler extends ChannelInboundHandlerAdapter {
         byte[] msgBytes = new byte[byteBuf.readableBytes()];
         byteBuf.readBytes(msgBytes);
         ByteBuffer requestMessage = ByteBuffer.wrap(msgBytes);
+        byteBuf.release();
 
         InetSocketAddress clientAddress =
                 (InetSocketAddress) ctx.channel().remoteAddress();


Mime
View raw message