Skip to content

Commit

Permalink
Merge pull request #170 from embhorn/gh169
Browse files Browse the repository at this point in the history
Fix build errors in server.c
  • Loading branch information
JacobBarthelmeh authored Jan 28, 2025
2 parents cdc723c + 685e85e commit 05d954a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/server/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -2226,7 +2226,7 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
if (myoptarg != NULL) {
if (XSTRLEN(myoptarg) >= DTLS_CID_BUFFER_SIZE) {
fprintf(stderr, "provided connection ID is too big\n");
return BAD_FUNC_ARG;
XEXIT_T(EXIT_FAILURE);
}
else {
strcpy(dtlsCID, myoptarg);
Expand Down Expand Up @@ -3427,10 +3427,11 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
unsigned int receivedCIDSz;
printf("CID extension was negotiated\n");
ret = wolfSSL_dtls_cid_get_tx_size(ssl, &receivedCIDSz);
if (ret != WOLFSSL_SUCCESS)
if (ret != WOLFSSL_SUCCESS) {
release(ctx, ssl, "Can't get negotiated DTLS CID size");
((func_args*)args)->return_code = ret;
goto exit;
}

if (receivedCIDSz > 0) {
ret = wolfSSL_dtls_cid_get_tx(ssl, receivedCID,
Expand Down

0 comments on commit 05d954a

Please sign in to comment.