Review comments

This commit is contained in:
Tesfa Mael
2020-01-24 18:13:20 -08:00
parent b67fd249e2
commit e664a4f206

View File

@ -2175,9 +2175,6 @@ static THREAD_RETURN WOLFSSL_THREAD test_server_nofail(void* args)
int ret, err = 0; int ret, err = 0;
int sharedCtx = 0; int sharedCtx = 0;
if (args)
return -1;
#ifdef WOLFSSL_TIRTOS #ifdef WOLFSSL_TIRTOS
fdOpenSession(Task_self()); fdOpenSession(Task_self());
#endif #endif
@ -2261,7 +2258,7 @@ static THREAD_RETURN WOLFSSL_THREAD test_server_nofail(void* args)
#ifdef WOLFSSL_SESSION_EXPORT #ifdef WOLFSSL_SESSION_EXPORT
/* only add in more complex nonblocking case with session export tests */ /* only add in more complex nonblocking case with session export tests */
if (((func_args*)args)->argc > 0) { if (args && ((func_args*)args)->argc > 0) {
/* set as nonblock and time out for waiting on read/write */ /* set as nonblock and time out for waiting on read/write */
tcp_set_nonblocking(&clientfd); tcp_set_nonblocking(&clientfd);
wolfSSL_dtls_set_using_nonblock(ssl, 1); wolfSSL_dtls_set_using_nonblock(ssl, 1);
@ -2400,9 +2397,6 @@ static THREAD_RETURN WOLFSSL_THREAD test_server_loop(void* args)
int loop_count = ((func_args*)args)->argc; int loop_count = ((func_args*)args)->argc;
int count = 0; int count = 0;
if (args)
return -1;
#ifdef WOLFSSL_TIRTOS #ifdef WOLFSSL_TIRTOS
fdOpenSession(Task_self()); fdOpenSession(Task_self());
#endif #endif
@ -2999,9 +2993,6 @@ static THREAD_RETURN WOLFSSL_THREAD run_wolfssl_server(void* args)
int idx; int idx;
int ret, err = 0; int ret, err = 0;
if (args)
return -1;
#ifdef WOLFSSL_TIRTOS #ifdef WOLFSSL_TIRTOS
fdOpenSession(Task_self()); fdOpenSession(Task_self());
#endif #endif