Only cache a method if we actually created one
authorMatt Caswell <matt@openssl.org>
Fri, 28 Jun 2019 13:29:34 +0000 (14:29 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 1 Jul 2019 09:07:52 +0000 (10:07 +0100)
commit08607613d573de9e3e021227506759f4f58debc6
tree8bed3e3a143a12e1ba99115cf7cc1a57fd257869
parent68756b12f55cb23536d531695619ad4a567916ab
Only cache a method if we actually created one

We were attempting to cache a method after we failed to create it
which leads to an assertion failure.

Fixes #9264

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9269)
crypto/evp/evp_fetch.c