Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions maxq10xx/maxq10xx-wolfssl-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ int main(int argc, char** argv)
#endif
struct sockaddr_in servAddr;
char buff[256];
size_t len;

/* declare wolfSSL objects */
WOLFSSL_CTX* ctx = NULL;
Expand Down Expand Up @@ -341,9 +340,9 @@ int main(int argc, char** argv)
}

/* Send the message to the server */
if ((ret = wolfSSL_write(ssl, MESSAGE, MESSAGE_LEN)) != len) {
if ((ret = wolfSSL_write(ssl, MESSAGE, MESSAGE_LEN)) != MESSAGE_LEN) {
fprintf(stderr, "ERROR: failed to write entire message\n");
fprintf(stderr, "%d bytes of %d bytes were sent", ret, (int) len);
fprintf(stderr, "%d bytes of %d bytes were sent", ret, MESSAGE_LEN);
goto exit;
}

Expand Down