diff options
Diffstat (limited to 'crypto/evp/mac_lib.c')
-rw-r--r-- | crypto/evp/mac_lib.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crypto/evp/mac_lib.c b/crypto/evp/mac_lib.c index e7eea3294b..0784aaddc2 100644 --- a/crypto/evp/mac_lib.c +++ b/crypto/evp/mac_lib.c @@ -39,12 +39,12 @@ EVP_MAC_CTX *EVP_MAC_CTX_new(EVP_MAC *mac) void EVP_MAC_CTX_free(EVP_MAC_CTX *ctx) { - if (ctx != NULL) { - ctx->meth->freectx(ctx->data); - ctx->data = NULL; - /* refcnt-- */ - EVP_MAC_free(ctx->meth); - } + if (ctx == NULL) + return; + ctx->meth->freectx(ctx->data); + ctx->data = NULL; + /* refcnt-- */ + EVP_MAC_free(ctx->meth); OPENSSL_free(ctx); } |