A fix for 'bad handshake MAC' error
This commit is contained in:
parent
e31dd0ebca
commit
3011d52e45
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user