Fix for example return code checking.
This commit is contained in:
parent
44e575b8c4
commit
03b7ac559a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user