diff --git a/configure.ac b/configure.ac index ea4bc8d59..f3d16a48c 100644 --- a/configure.ac +++ b/configure.ac @@ -463,7 +463,6 @@ then test "$enable_cryptocb" = "" && enable_cryptocb=yes test "$enable_fallback_scsv" = "" && enable_fallback_scsv=yes test "$enable_anon" = "" && enable_anon=yes - test "$enable_mcast" = "" && enable_mcast=yes if test "$ENABLED_32BIT" != "yes" then @@ -498,7 +497,6 @@ then test "$enable_opensslextra" = "" && enable_opensslextra=yes test "$enable_opensslall" = "" && enable_opensslall=yes test "$enable_certservice" = "" && enable_certservice=yes - test "$enable_jni" = "" && enable_jni=yes test "$enable_lighty" = "" && enable_lighty=yes test "$enable_haproxy" = "" && enable_haproxy=yes test "$enable_stunnel" = "" && enable_stunnel=yes @@ -691,6 +689,8 @@ AS_IF([ test "x$ENABLED_SINGLETHREADED" = "xyes" ],[ AM_CFLAGS="-DSINGLE_THREADE # DTLS +# DTLS is a prereq for the options mcast, sctp, and jni. Enabling any of those +# without DTLS will also enable DTLS. AC_ARG_ENABLE([dtls], [AS_HELP_STRING([--enable-dtls],[Enable wolfSSL DTLS (default: disabled)])], [ ENABLED_DTLS=$enableval ], diff --git a/src/internal.c b/src/internal.c index 537798780..c033a494f 100644 --- a/src/internal.c +++ b/src/internal.c @@ -19534,8 +19534,12 @@ int ReceiveData(WOLFSSL* ssl, byte* output, int sz, int peek) if (ssl->options.dtls) { /* In DTLS mode, we forgive some errors and allow the session * to continue despite them. */ - if (ssl->error == VERIFY_MAC_ERROR || ssl->error == DECRYPT_ERROR) + if (ssl->error == VERIFY_MAC_ERROR || + ssl->error == DECRYPT_ERROR || + ssl->error == DTLS_SIZE_ERROR) { + ssl->error = 0; + } } #endif /* WOLFSSL_DTLS */