Merge pull request #680 from ejohnstown/dtls-sctp-fix

DTLS-SCTP fix
This commit is contained in:
JacobBarthelmeh
2016-12-22 13:10:29 -07:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -8183,7 +8183,7 @@ static int DoDtlsHandShakeMsg(WOLFSSL* ssl, byte* input, word32* inOutIdx,
/* This branch is in order next, and a complete message. */
ret = DoHandShakeMsgType(ssl, input, inOutIdx, type, size, totalSz);
if (ret == 0) {
if (type != client_hello)
if (type != client_hello || !IsDtlsNotSctpMode(ssl))
ssl->keys.dtls_expected_peer_handshake_number++;
if (ssl->dtls_rx_msg_list != NULL) {
ret = DtlsMsgDrain(ssl);

View File

@@ -23,5 +23,6 @@ EXTRA_DIST += tests/test.conf \
tests/test-qsh.conf \
tests/test-psk-no-id.conf \
tests/test-dtls.conf \
tests/test-sctp.conf \
tests/test-sig.conf
DISTCLEANFILES+= tests/.libs/unit.test