forked from wolfSSL/wolfssl
fix: examples/server: dtls mode checking
This fixes using ssl to check if we are using dtls or not, when ssl is not yet
valid.
Fix: 060dfe1a69
This commit is contained in:
@ -2342,7 +2342,7 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
|
||||
|
||||
if (minVersion != SERVER_INVALID_VERSION) {
|
||||
#ifdef WOLFSSL_DTLS13
|
||||
if (wolfSSL_dtls(ssl)) {
|
||||
if (doDTLS) {
|
||||
switch (minVersion) {
|
||||
case 4:
|
||||
minVersion = WOLFSSL_DTLSV1_3;
|
||||
|
Reference in New Issue
Block a user