Fix coverity issues

Fixes coverity issues 1642964, 1642965, 1642966, 1642968, 1642969

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/26793)
This commit is contained in:
Dmitry Belyavskiy 2025-02-17 11:16:34 +01:00
parent 1636ae1a90
commit 83ced5e6b1
3 changed files with 23 additions and 12 deletions

View file

@ -45,6 +45,9 @@ void *generic_import(void *provctx, int selection, const OSSL_PARAM params[])
return NULL;
generic = OPENSSL_zalloc(sizeof(PROV_SKEY));
if (generic == NULL)
return NULL;
generic->libctx = libctx;
generic->type = SKEY_TYPE_GENERIC;