Fix for example return code checking.

This commit is contained in:
David Garske 2020-08-11 16:09:25 -07:00
parent 44e575b8c4
commit 03b7ac559a

View File

@ -142,7 +142,6 @@ void wolfssl_thread_entry(void *pvParameters) {
}
memset(buff, 0, sizeof(buff));
ret = wolfSSL_read(ssl, buff, sizeof(buff) - 1);
if (ret < 0)
break;
@ -156,6 +155,8 @@ void wolfssl_thread_entry(void *pvParameters) {
/* Reply back to the client */
ret = wolfSSL_write(ssl, buff, (int) strlen(buff));
if (ret < 0)
break;
/* Cleanup after this connection */
util_Cleanup(xConnectedSocket, ctx, ssl);