CORE: Fix small bug in passphrase caching
authorRichard Levitte <levitte@openssl.org>
Fri, 28 Aug 2020 11:07:35 +0000 (13:07 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 3 Sep 2020 15:48:32 +0000 (17:48 +0200)
commit67b640135696d4426475fb0c455c094a6c33ee45
tree3840e2fdd05ba03f2a18dfcdd913a89255810100
parent7a3068109568cefdb0d63be1d0c83251c621156e
CORE: Fix small bug in passphrase caching

Passphrase caching didn't allocate memory when it got to cache an
empty string, leading to a crash.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12587)
crypto/passphrase.c