Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11651)
ffc->pcounter = i;
}
prm = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_FFC_COFACTOR);
- if (prm != NULL) {
- if (!OSSL_PARAM_get_BN(prm, &j))
- goto err;
- j = NULL;
- }
+ if (prm != NULL && !OSSL_PARAM_get_BN(prm, &j))
+ goto err;
prm = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_FFC_H);
if (prm != NULL) {
if (!OSSL_PARAM_get_int(prm, &i))