From cac0b8cacb2a2fdf63abde2a4762a8058be6e07c Mon Sep 17 00:00:00 2001 From: Samuel Chiang Date: Fri, 4 Oct 2024 14:24:52 -0700 Subject: [PATCH] Use GUARD_PTR for EVP_PKEY_CTX_get_keygen_info Co-authored-by: Sean McGrail <549813+skmcgrail@users.noreply.github.com> --- crypto/fipsmodule/evp/evp_ctx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/fipsmodule/evp/evp_ctx.c b/crypto/fipsmodule/evp/evp_ctx.c index 0184fd9b97..3e00f8a83e 100644 --- a/crypto/fipsmodule/evp/evp_ctx.c +++ b/crypto/fipsmodule/evp/evp_ctx.c @@ -695,6 +695,7 @@ void *EVP_PKEY_CTX_get_app_data(EVP_PKEY_CTX *ctx) { } int EVP_PKEY_CTX_get_keygen_info(EVP_PKEY_CTX *ctx, int idx) { + GUARD_PTR(ctx); if (idx == -1) { return EVP_PKEY_CTX_KEYGEN_INFO_COUNT; }