skip past the pad and mac when skipping a finished message in DTLS

This commit is contained in:
John Safranek
2015-08-13 14:29:56 -07:00
parent b5ac17539e
commit 8cc9c62911

View File

@ -5193,6 +5193,8 @@ static int DoDtlsHandShakeMsg(WOLFSSL* ssl, byte* input, word32* inOutIdx,
ssl->keys.dtls_expected_peer_handshake_number) {
/* Already saw this message and processed it. It can be ignored. */
*inOutIdx += fragSz;
if(type == finished )
*inOutIdx += ssl->keys.padSz;
ret = 0;
}
else if (fragSz < size) {