summaryrefslogtreecommitdiff
path: root/FreeRTOS-Plus/Source/WolfSSL/input
diff options
context:
space:
mode:
Diffstat (limited to 'FreeRTOS-Plus/Source/WolfSSL/input')
-rw-r--r--FreeRTOS-Plus/Source/WolfSSL/input4
1 files changed, 3 insertions, 1 deletions
diff --git a/FreeRTOS-Plus/Source/WolfSSL/input b/FreeRTOS-Plus/Source/WolfSSL/input
index 06dbbf076..a8cdf06c1 100644
--- a/FreeRTOS-Plus/Source/WolfSSL/input
+++ b/FreeRTOS-Plus/Source/WolfSSL/input
@@ -48,7 +48,9 @@ int main(int argc, char** argv)
ssl = SSL_new(ctx);
- SSL_set_fd(ssl, sockfd);
+ if (SSL_set_fd(ssl, sockfd) != SSL_SUCCESS)
+ err_sys("can't set ssl fd");
+
if (SSL_connect(ssl) != SSL_SUCCESS) err_sys("SSL_connect failed");
while (fgets(send, sizeof(send), fin)) {