Skip to content

Commit 05d954a

Browse files
Merge pull request #170 from embhorn/gh169
Fix build errors in server.c
2 parents cdc723c + 685e85e commit 05d954a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/server/server.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2226,7 +2226,7 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
22262226
if (myoptarg != NULL) {
22272227
if (XSTRLEN(myoptarg) >= DTLS_CID_BUFFER_SIZE) {
22282228
fprintf(stderr, "provided connection ID is too big\n");
2229-
return BAD_FUNC_ARG;
2229+
XEXIT_T(EXIT_FAILURE);
22302230
}
22312231
else {
22322232
strcpy(dtlsCID, myoptarg);
@@ -3427,10 +3427,11 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
34273427
unsigned int receivedCIDSz;
34283428
printf("CID extension was negotiated\n");
34293429
ret = wolfSSL_dtls_cid_get_tx_size(ssl, &receivedCIDSz);
3430-
if (ret != WOLFSSL_SUCCESS)
3430+
if (ret != WOLFSSL_SUCCESS) {
34313431
release(ctx, ssl, "Can't get negotiated DTLS CID size");
34323432
((func_args*)args)->return_code = ret;
34333433
goto exit;
3434+
}
34343435

34353436
if (receivedCIDSz > 0) {
34363437
ret = wolfSSL_dtls_cid_get_tx(ssl, receivedCID,

0 commit comments

Comments
 (0)