From a7c7407406ce8cd96c13a66cdf1e5f50afeeb768 Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Thu, 16 Jun 2016 16:39:18 -0600 Subject: [PATCH] fix windows example echoserver --- README | 1 + examples/echoserver/echoserver.c | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README b/README index 31f6e911d..e10dd8b40 100644 --- a/README +++ b/README @@ -72,6 +72,7 @@ Release 3.9.6 of wolfSSL has bug fixes and new features including: recommend updating to the latest - (1) Code changes for ECC fix can be found at pull requests #411, #416, and #428 - (2) Builds using RSA with using normal math and not RSA_LOW_MEM should update +- Tag 3.9.6w is for a Windows example echoserver fix See INSTALL file for build instructions. More info can be found on-line at //http://wolfssl.com/wolfSSL/Docs.html diff --git a/examples/echoserver/echoserver.c b/examples/echoserver/echoserver.c index e3937615d..65ca4c46c 100644 --- a/examples/echoserver/echoserver.c +++ b/examples/echoserver/echoserver.c @@ -114,11 +114,9 @@ THREAD_RETURN CYASSL_THREAD echoserver_test(void* args) doPSK = 1; #endif -#if defined(USE_WINDOWS_API) - /* Generate random port for testing */ - port = GetRandomPort(); -#elif defined(NO_MAIN_DRIVER) && !defined(CYASSL_SNIFFER) && \ - !defined(WOLFSSL_MDK_SHELL) && !defined(CYASSL_TIRTOS) +#if defined(NO_MAIN_DRIVER) && !defined(CYASSL_SNIFFER) && \ + !defined(WOLFSSL_MDK_SHELL) && !defined(CYASSL_TIRTOS) && \ + !defined(USE_WINDOWS_API) /* Let tcp_listen assign port */ port = 0; #else