diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2020-06-23 12:30:40 +1000 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2020-06-30 11:52:15 +1000 |
commit | 9beffaf695b7ed5a7198496036b9aed87d598e51 (patch) | |
tree | 496311ed2444dbaf169d5cb470316b9e5a48310f /crypto/dsa/dsa_gen.c | |
parent | 2c9ba46c90e9d25040260bbdc43e87921f08c788 (diff) |
Fix CID-1464802
Improper use of negative value (It just needs to pass zero instead of -1).
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/12237)
Diffstat (limited to 'crypto/dsa/dsa_gen.c')
-rw-r--r-- | crypto/dsa/dsa_gen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/dsa/dsa_gen.c b/crypto/dsa/dsa_gen.c index 9d5e91de29..94b3da8754 100644 --- a/crypto/dsa/dsa_gen.c +++ b/crypto/dsa/dsa_gen.c @@ -63,7 +63,7 @@ int DSA_generate_parameters_ex(DSA *dsa, int bits, return 0; } else { if (!dsa_generate_ffc_parameters(dsa, DSA_PARAMGEN_TYPE_FIPS_186_4, - bits, -1, cb)) + bits, 0, cb)) return 0; } |