summaryrefslogtreecommitdiffstats
path: root/providers/implementations
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2021-06-02 06:42:56 +0200
committerPauli <pauli@openssl.org>2021-06-03 08:15:41 +0200
commitba3ea453b0863a8b7374003dd2e22dea9cece5be (patch)
treed21b0f77c975a35cd9d21ce1cd5408bacad98085 /providers/implementations
parentrsa: make the maximum key strength check FIPS only. (diff)
downloadopenssl-ba3ea453b0863a8b7374003dd2e22dea9cece5be.tar.xz
openssl-ba3ea453b0863a8b7374003dd2e22dea9cece5be.zip
Fix errors found by parfait static analyser.
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15579)
Diffstat (limited to 'providers/implementations')
-rw-r--r--providers/implementations/macs/cmac_prov.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/providers/implementations/macs/cmac_prov.c b/providers/implementations/macs/cmac_prov.c
index 4f8450475c..2291276035 100644
--- a/providers/implementations/macs/cmac_prov.c
+++ b/providers/implementations/macs/cmac_prov.c
@@ -87,6 +87,8 @@ static void *cmac_dup(void *vsrc)
return NULL;
dst = cmac_new(src->provctx);
+ if (dst == NULL)
+ return NULL;
if (!CMAC_CTX_copy(dst->ctx, src->ctx)
|| !ossl_prov_cipher_copy(&dst->cipher, &src->cipher)) {
cmac_free(dst);