free null cleanup finale
Don't check for NULL before calling OPENSSL_free Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
@@ -113,8 +113,7 @@ static int pkey_dsa_copy(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src)
|
||||
static void pkey_dsa_cleanup(EVP_PKEY_CTX *ctx)
|
||||
{
|
||||
DSA_PKEY_CTX *dctx = ctx->data;
|
||||
if (dctx)
|
||||
OPENSSL_free(dctx);
|
||||
OPENSSL_free(dctx);
|
||||
}
|
||||
|
||||
static int pkey_dsa_sign(EVP_PKEY_CTX *ctx, unsigned char *sig,
|
||||
|
Reference in New Issue
Block a user