crypto/bn: fix return value in BN_generate_prime
authorDavid Asraf <dasraf9@gmail.com>
Wed, 23 Jan 2019 11:10:11 +0000 (11:10 +0000)
committerMatt Caswell <matt@openssl.org>
Sun, 27 Jan 2019 12:12:50 +0000 (12:12 +0000)
commit3d43f9c809e42b960be94f2f4490d6d14e063486
tree5f4047ff44525feb2dd67272db1a6594feb6f472
parent5478e2100260b8d6f9df77de875f37763d8eeec6
crypto/bn: fix return value in BN_generate_prime

When the ret parameter is NULL the generated prime
is in rnd variable and not in ret.

CLA: trivial

Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8076)
crypto/bn/bn_depr.c