forked from wolfSSL/wolfssl
Fix for example return code checking.
This commit is contained in:
@@ -142,7 +142,6 @@ void wolfssl_thread_entry(void *pvParameters) {
|
|||||||
}
|
}
|
||||||
memset(buff, 0, sizeof(buff));
|
memset(buff, 0, sizeof(buff));
|
||||||
ret = wolfSSL_read(ssl, buff, sizeof(buff) - 1);
|
ret = wolfSSL_read(ssl, buff, sizeof(buff) - 1);
|
||||||
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -156,6 +155,8 @@ void wolfssl_thread_entry(void *pvParameters) {
|
|||||||
|
|
||||||
/* Reply back to the client */
|
/* Reply back to the client */
|
||||||
ret = wolfSSL_write(ssl, buff, (int) strlen(buff));
|
ret = wolfSSL_write(ssl, buff, (int) strlen(buff));
|
||||||
|
if (ret < 0)
|
||||||
|
break;
|
||||||
|
|
||||||
/* Cleanup after this connection */
|
/* Cleanup after this connection */
|
||||||
util_Cleanup(xConnectedSocket, ctx, ssl);
|
util_Cleanup(xConnectedSocket, ctx, ssl);
|
||||||
|
Reference in New Issue
Block a user