7166487: checkSequenceNumber method never called within readRecord of SSLEngineImpl
Reviewed-by: weijun
--- a/jdk/src/share/classes/sun/security/ssl/SSLEngineImpl.java Tue Jun 19 10:20:45 2012 +0100
+++ b/jdk/src/share/classes/sun/security/ssl/SSLEngineImpl.java Tue Jun 19 17:28:06 2012 -0700
@@ -1119,6 +1119,7 @@
* handle a few more records, so the sequence number
* of the last record cannot be wrapped.
*/
+ hsStatus = getHSStatus(hsStatus);
if (connectionState < cs_ERROR && !isInboundDone() &&
(hsStatus == HandshakeStatus.NOT_HANDSHAKING)) {
if (checkSequenceNumber(readMAC,
@@ -1287,6 +1288,7 @@
* handle a few more records, so the sequence number
* of the last record cannot be wrapped.
*/
+ hsStatus = getHSStatus(hsStatus);
if (connectionState < cs_ERROR && !isOutboundDone() &&
(hsStatus == HandshakeStatus.NOT_HANDSHAKING)) {
if (checkSequenceNumber(writeMAC, eor.contentType())) {