Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When making a copy to keep in the EVP_PKEY_CTX, allocate a single byte for the cached key instead of letting memdup return NULL and cause the call to fail. The length still gets set to zero properly, so we don't end up inspecting the allocated byte, but it's important to have a non-NULL pointer set.
- Loading branch information