diff options
author | Pauli <paul.dale@oracle.com> | 2020-09-22 08:29:58 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-09-23 15:28:29 +1000 |
commit | d8e52fd05e350ee308715c46ac13dbea2899a6ce (patch) | |
tree | a6107219542ac94907a2c58e48e3f3fcdd11dc97 /crypto/evp/evp_rand.c | |
parent | 44d2482ba62bf7fc2fd4cfc250ad09e0feaa42da (diff) |
evp_rand: fix bug in gettable_ctx/settable_ctx calls
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12931)
Diffstat (limited to 'crypto/evp/evp_rand.c')
-rw-r--r-- | crypto/evp/evp_rand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/evp/evp_rand.c b/crypto/evp/evp_rand.c index 2e4edfff34..c0729656cb 100644 --- a/crypto/evp/evp_rand.c +++ b/crypto/evp/evp_rand.c @@ -433,7 +433,7 @@ const OSSL_PARAM *EVP_RAND_gettable_params(const EVP_RAND *rand) const OSSL_PARAM *EVP_RAND_gettable_ctx_params(const EVP_RAND *rand) { - if (rand->gettable_params == NULL) + if (rand->gettable_ctx_params == NULL) return NULL; return rand->gettable_ctx_params( ossl_provider_ctx(EVP_RAND_provider(rand))); @@ -441,7 +441,7 @@ const OSSL_PARAM *EVP_RAND_gettable_ctx_params(const EVP_RAND *rand) const OSSL_PARAM *EVP_RAND_settable_ctx_params(const EVP_RAND *rand) { - if (rand->gettable_params == NULL) + if (rand->settable_ctx_params == NULL) return NULL; return rand->settable_ctx_params( ossl_provider_ctx(EVP_RAND_provider(rand))); |