diff --git a/src/internal.c b/src/internal.c index ca67970df..33d18ee58 100644 --- a/src/internal.c +++ b/src/internal.c @@ -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); diff --git a/tests/include.am b/tests/include.am index 63768e663..8368b49ce 100644 --- a/tests/include.am +++ b/tests/include.am @@ -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