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;
}
ChannelBuffer frame;
try {
frame = unwrap(ctx, channel, buffer, buffer.readerIndex(), packetLength);
} finally {
buffer.skipBytes(packetLength);
}
final int packetOffset = buffer.readerIndex();
buffer.skipBytes(packetLength);
ChannelBuffer frame = unwrap(ctx, channel, buffer, packetOffset, packetLength);
return frame;
}