diff --git a/src/internal.c b/src/internal.c index 7850eedf2..f8c76ac9e 100755 --- a/src/internal.c +++ b/src/internal.c @@ -9739,10 +9739,8 @@ static INLINE int DtlsUpdateWindow(WOLFSSL* ssl) cur_hi = ssl->keys.curSeq_hi; cur_lo = ssl->keys.curSeq_lo; - if (!ssl->options.haveMcast) - peerSeq = ssl->keys.peerSeq; - else { #ifdef WOLFSSL_MULTICAST + if (ssl->options.haveMcast) { WOLFSSL_DTLS_PEERSEQ* p; int i; @@ -9779,8 +9777,8 @@ static INLINE int DtlsUpdateWindow(WOLFSSL* ssl) ssl->ctx->mcastSecondSeq, ssl->ctx->mcastMaxSeq); } -#endif } +#endif if (ssl->keys.curEpoch == peerSeq->nextEpoch) { next_hi = &peerSeq->nextSeq_hi; diff --git a/wolfssl/wolfcrypt/settings.h b/wolfssl/wolfcrypt/settings.h index 92bb3b2c0..58d1bd2c6 100644 --- a/wolfssl/wolfcrypt/settings.h +++ b/wolfssl/wolfcrypt/settings.h @@ -153,7 +153,7 @@ #include #ifdef WOLFSSL_USER_SETTINGS - #include + #include "user_settings.h" #endif @@ -174,7 +174,10 @@ #endif #ifdef HAVE_NETX - #include "nx_api.h" + #ifdef NEED_THREADX_TYPES + #include + #endif + #include #endif #if defined(HAVE_LWIP_NATIVE) /* using LwIP native TCP socket */ diff --git a/wolfssl/wolfcrypt/wc_port.h b/wolfssl/wolfcrypt/wc_port.h index 0c42240f0..d10522cbf 100644 --- a/wolfssl/wolfcrypt/wc_port.h +++ b/wolfssl/wolfcrypt/wc_port.h @@ -49,7 +49,10 @@ #endif #elif defined(THREADX) #ifndef SINGLE_THREADED - #include "tx_api.h" + #ifdef NEED_THREADX_TYPES + #include + #endif + #include #endif #elif defined(MICRIUM) /* do nothing, just don't pick Unix */