diff --git a/crypto/cmp/cmp_kem.c b/crypto/cmp/cmp_kem.c index e069d67f949b57..a7ef57be39ddaf 100644 --- a/crypto/cmp/cmp_kem.c +++ b/crypto/cmp/cmp_kem.c @@ -497,8 +497,7 @@ static int performKemEncapsulation(OSSL_CMP_CTX *ctx, EVP_PKEY *pubkey, int ossl_cmp_kem_get_ss_using_srvcert(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg) { size_t secret_len, ct_len; - int ssk_len = 0; - unsigned char *secret = NULL, *ct = NULL, *ssk = NULL; + unsigned char *secret = NULL, *ct = NULL; OSSL_CMP_ITAV *kem_itav; int ret = 0; ASN1_OCTET_STRING *asn1ct = NULL; @@ -536,8 +535,6 @@ int ossl_cmp_kem_get_ss_using_srvcert(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg) OPENSSL_clear_free(secret, secret_len); if (ct != NULL) OPENSSL_clear_free(ct, ct_len); - if (ssk != NULL) - OPENSSL_clear_free(ssk, ssk_len); ASN1_OCTET_STRING_free(asn1ct); return ret; }