Skip to content

Commit 1329543

Browse files
author
Lealem Amedie
committed
Other miscellaneous fixes
1 parent bcbeef7 commit 1329543

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

configure.ac

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,8 @@ AC_ARG_ENABLE([error-queue-per-thread],
17261726

17271727
if test "$ENABLED_ERRORQUEUEPERTHREAD" = "check"
17281728
then
1729-
AS_IF([test "$thread_ls_on" = "no"],
1729+
AS_IF([test "$thread_ls_on" = "no" ||
1730+
test "$ENABLED_SINGLETHREADED" = "yes"],
17301731
[ENABLED_ERRORQUEUEPERTHREAD=no],
17311732
[ENABLED_ERRORQUEUEPERTHREAD=yes])
17321733
fi

src/ocsp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ WOLFSSL_OCSP_ONEREQ* wolfSSL_OCSP_request_add0_id(OcspRequest *req,
11371137
return NULL;
11381138

11391139
if (req->cid != NULL)
1140-
wolfSSL_OCSP_CERTID_free(req->cid);
1140+
wolfSSL_OCSP_CERTID_free((WOLFSSL_OCSP_CERTID*)req->cid);
11411141
/* Keep to free */
11421142
req->cid = (void*)cid;
11431143

tests/api.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,8 @@ static int test_wolfSSL_CTX_load_verify_locations(void)
14471447
/* Get cert cache size */
14481448
ExpectIntGT(cacheSz = wolfSSL_CTX_get_cert_cache_memsize(ctx), 0);
14491449

1450-
ExpectNotNull(cache = XMALLOC(cacheSz, NULL, DYNAMIC_TYPE_TMP_BUFFER));
1450+
ExpectNotNull(cache = (byte*)XMALLOC(cacheSz, NULL,
1451+
DYNAMIC_TYPE_TMP_BUFFER));
14511452

14521453
ExpectIntEQ(wolfSSL_CTX_memsave_cert_cache(NULL, NULL, -1, NULL),
14531454
BAD_FUNC_ARG);

0 commit comments

Comments
 (0)