evp_pkey_ctx_free_old_ops(): Make sure to assign NULL to freed pointers
authorRichard Levitte <levitte@openssl.org>
Tue, 29 Oct 2019 21:17:19 +0000 (22:17 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 31 Oct 2019 11:26:59 +0000 (12:26 +0100)
commitfb1ecf85c9f732e5827771ff243d7a70e06ce112
treef3230b76ee0775ac7a8cd6da9bd531432b4271ae
parent2aa28a1abc893fb16b99ba77e2fecb1cbc8769c7
evp_pkey_ctx_free_old_ops(): Make sure to assign NULL to freed pointers

Otherwise, should this function be called more than once on the same
EVP_PKEY_CTX, we get double free issues.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10292)
crypto/evp/pmeth_lib.c