aboutsummaryrefslogtreecommitdiff
path: root/providers/common/macs/cmac_prov.c
diff options
context:
space:
mode:
Diffstat (limited to 'providers/common/macs/cmac_prov.c')
-rw-r--r--providers/common/macs/cmac_prov.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/providers/common/macs/cmac_prov.c b/providers/common/macs/cmac_prov.c
index 64ecba2..6934231 100644
--- a/providers/common/macs/cmac_prov.c
+++ b/providers/common/macs/cmac_prov.c
@@ -66,8 +66,9 @@ static void *cmac_new(void *provctx)
|| (macctx->ctx = CMAC_CTX_new()) == NULL) {
OPENSSL_free(macctx);
macctx = NULL;
+ } else {
+ macctx->provctx = provctx;
}
- macctx->provctx = provctx;
return macctx;
}