ssl/tls_srp.c: Add check for BN_dup
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Fri, 1 Jul 2022 08:23:58 +0000 (16:23 +0800)
committerTodd Short <todd.short@me.com>
Fri, 8 Jul 2022 17:11:26 +0000 (13:11 -0400)
commit7d268078e2178b4bfa7e686c1dd4e5688a07604a
treeb0e611422159fcd7427fd2e5630d47ad15b9ac3b
parent197e6a3411682d56e460a329d8d547e9aa585d49
ssl/tls_srp.c: Add check for BN_dup

As the potential failure of the BN_dup,
it should be better to check the return value
in order to guarantee the success.

Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/18699)

(cherry picked from commit 12e488367d34657a5c0e1bc322e66c48463d2a0c)
ssl/tls_srp.c