diff options
author | Tomas Mraz <tomas@openssl.org> | 2022-01-13 19:01:33 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-01-17 16:20:57 +0100 |
commit | 3b53f88c008d288e86d2bbdc0c4e2d16c29fcee8 (patch) | |
tree | 9c3c56c1f4e4be57cabb21d6bacc66e5f8befb35 /crypto/ffc | |
parent | f58bb2dd00c3004552c5c1e8d0f2c1390c004cf8 (diff) |
Do not call ossl_ffc_name_to_dh_named_group with NULL argument
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17498)
Diffstat (limited to 'crypto/ffc')
-rw-r--r-- | crypto/ffc/ffc_backend.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/ffc/ffc_backend.c b/crypto/ffc/ffc_backend.c index b227186934..b387f966cc 100644 --- a/crypto/ffc/ffc_backend.c +++ b/crypto/ffc/ffc_backend.c @@ -37,6 +37,7 @@ int ossl_ffc_params_fromdata(FFC_PARAMS *ffc, const OSSL_PARAM params[]) const DH_NAMED_GROUP *group = NULL; if (prm->data_type != OSSL_PARAM_UTF8_STRING + || prm->data == NULL || (group = ossl_ffc_name_to_dh_named_group(prm->data)) == NULL || !ossl_ffc_named_group_set_pqg(ffc, group)) #endif |