diff --git a/src/internal.c b/src/internal.c index e131fe3a1..6c006cd05 100644 --- a/src/internal.c +++ b/src/internal.c @@ -1821,8 +1821,9 @@ int InitSSL_Ctx(WOLFSSL_CTX* ctx, WOLFSSL_METHOD* method, void* heap) } XMEMSET(ctx->param, 0, sizeof(WOLFSSL_X509_VERIFY_PARAM)); /* WOLFSS_X509_LOOKUP */ - if ((ctx->x509_store.lookup.dirs = (WOLFSSL_BY_DIR*)XMALLOC(sizeof(WOLFSSL_BY_DIR), - ctx->heap, DYNAMIC_TYPE_OPENSSL)) == NULL) { + if ((ctx->x509_store.lookup.dirs = + (WOLFSSL_BY_DIR*)XMALLOC(sizeof(WOLFSSL_BY_DIR), + heap, DYNAMIC_TYPE_OPENSSL)) == NULL) { WOLFSSL_MSG("ctx-x509_store.lookup.dir memory allocation error"); return MEMORY_E; } diff --git a/src/ssl.c b/src/ssl.c index c1d0811b3..33f36f7e6 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -24979,6 +24979,7 @@ int wolfSSL_X509_LOOKUP_ctrl(WOLFSSL_X509_LOOKUP *ctx, int cmd, (void)argl; (void)ret; (void)cmd; + (void)x509AddCertDir; lret = WOLFSSL_NOT_IMPLEMENTED; #endif return lret;