A fix for 'bad handshake MAC' error

This commit is contained in:
Trustin Lee 2009-09-22 09:25:05 +00:00
parent e31dd0ebca
commit 3011d52e45

View File

@ -472,12 +472,9 @@ public class SslHandler extends FrameDecoder implements ChannelDownstreamHandler
return null; return null;
} }
ChannelBuffer frame; final int packetOffset = buffer.readerIndex();
try { buffer.skipBytes(packetLength);
frame = unwrap(ctx, channel, buffer, buffer.readerIndex(), packetLength); ChannelBuffer frame = unwrap(ctx, channel, buffer, packetOffset, packetLength);
} finally {
buffer.skipBytes(packetLength);
}
return frame; return frame;
} }