From bf66a60442e567fef425d9dff1257615cb1836b8 Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Wed, 30 Apr 2025 16:02:17 -0400 Subject: [PATCH] Also prevent a dangling pointer --- tls/client-tls-pkcs12.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tls/client-tls-pkcs12.c b/tls/client-tls-pkcs12.c index a90d3335..6ac031ad 100644 --- a/tls/client-tls-pkcs12.c +++ b/tls/client-tls-pkcs12.c @@ -152,7 +152,7 @@ int main(int argc, char** argv) return APP_ERR; } - wolfSSL_d2i_PKCS12_bio(bio, &pkcs12); + pkcs12 = wolfSSL_d2i_PKCS12_bio(bio, NULL); if (!pkcs12) { printf("Failed the d2i_PKCS12_bio call\n"); wolfSSL_CTX_free(ctx);